This is found by my genius teammate Marvin. More tricks can be found here.
The logical servername can be obtained from the SessionInfo.
I added these lines to the CheckSession method:
System.out.println(“Hostname: ” + sessionInfo.getHostName());
System.out.println(“Listener: ” + sessionInfo.getListener());
This is what was appears in the server log:
Sep 28 11:03:21 2006: Hostname: CPU062C.my.goa.ds – not useful, this is just the computer name.
Sep 28 11:03:21 2006: Listener: cpu062cSECURE_iiop – this is what I needed (it has the logical servername ‘CPU062cSECURE’ is embedded in the listenername).