Hi..
I've defined a couple of websphere managed variables from my admin console. AdminConsole -> Environment -> Managed WebSphere Variables.
But i'm not sure how to access these variables from my java code, for example from a servlet or bean.
Any ideas??
System.getProperty("var name") does not work and just returns null. Any advice would be appreciated.
Thanx.
-R
-
How to accessing Websphere Managed Variables? (1 messages)
- Posted by: Ravi Ramachandran
- Posted on: March 18 2005 13:54 EST
Threaded Messages (1)
- How to accessing Websphere Managed Variables? by Bill Lasley on March 19 2005 11:52 EST
-
How to accessing Websphere Managed Variables?[ Go to top ]
- Posted by: Bill Lasley
- Posted on: March 19 2005 11:52 EST
- in response to Ravi Ramachandran
WebSphere managed variables are defined at three different scopes: Cell, Node, and Server. I have seen only one example of accessing WebSphere variables from a Servlet, and that was done through JMX, accessing WebSphere management classes. It was not a perfect solution; symbolic references in variables were not automatically substituted, for one thing. There are variables.xml files in the $WAS_HOME/config directory under the cell_name, node_name, and server name directories. It is probably not a good idea (security, complexity) but you may be able to write something to read those files to find the variable value you need.
Bill Lasley
Versant Corp.
http://www.versant.com