Access WebSphere Variables in J2EE Applications

Accessing WebSphere Variables from inside your J2EE application isn't as easy as it looks. They're not environment variables or system properties, but a portion of the WebSphere configuration that is used by the WebSphere Application Server Runtime.

You can access these variables by invoking an operation on "AdminOperations" MBean as follows:

This code will only work from an application running inside the server.

blog comments powered by Disqus