How to get APP_INSTALL_ROOT WAS_INSTALL_ROOT at runtime?
--------------------------------
Hello,
I am writing a web application running in websphere and I want to get ${APP_INSTALL_ROOT} and ${WAS_INSTALL_ROOT} websphere environment variable at runtime.
I tried to use
InitialContext ctx = new InitialContext();
String root=(String) ctx.lookup(/"java:comp/env/WAS_INSTALL_ROOT/");
but it doesn't work. Any idea?
-Thanks
--------------------------------
Posted By: simplelife at Nov 13 2009 3:12PM