Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to get jvm/server name

843833May 27 2008 — edited May 27 2008
Hi,
I need to get the name of the JVM that's running my application code (I can get the server name, but we may be running multiple JVMs on a server so I need the JVM name too), I'm running WebSphere v6.0. I have a partial solution, but this doesn't work from a Tag. If I insert
<% System.out.println("am.appserver = " + System.getProperty("am.appserver")); %>
in a JSP it works fine and outputs 'server1', but running the same code in a Tag outputs
null
.

Can anyone suggest how I can get the JVM name, or alternatively tell me how to fix the above?

TIA, Steve.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2008
Added on May 27 2008
1 comment
737 views