Get a logical server’s name

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).

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s