WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  How to get APP_INSTALL_ROOT WAS_INSTALL_ROOT at runtime?

    Posted 08/11/10 10:38 AM
    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


  • 2.  How to get APP_INSTALL_ROOT WAS_INSTALL_ROOT at runtime?

    Posted 08/11/10 10:46 AM
    set these as JVM arguments in websphere and get using system.getproperty.

    --------------------------------

    Posted By: naresh at Nov 13 2009 4:39PM


  • 3.  How to get APP_INSTALL_ROOT WAS_INSTALL_ROOT at runtime?

    Posted 08/11/10 10:59 AM
    hope this helps.

    www.slightlytallerthanaverageman.com/200...

    Anant

    --------------------------------

    Posted By: infyniti at Nov 23 2009 8:44PM


  • 4.  How to get APP_INSTALL_ROOT WAS_INSTALL_ROOT at runtime?

    Posted 08/11/10 10:59 AM
    I mean reading APP_INSTALL_ROOT info at runtime. APP_INSTALL_ROOT is defined in websphere environment variable at node scope.

    I am getting ConfigService /"VariableSubstitutionEntry/" to retrieve the data. But it doesn't work for me. I just can get WAS_CELL_NAME at cell level scope.

    --------------------------------

    Posted By: simplelife at Nov 13 2009 6:43PM