8 Replies Latest reply on Mar 9, 2007 3:16 PM by Peter Johnson

    Accessing ini file after deployment - Urgent

    Yugandhar Cindepalle Newbie

      Hello,

      I am passing application.home and application.configFile to JAVA_OPTS in run.bat and run.sh files for windows and unix instances respectively.

      I am not able to access these files from my application after deploying the ear file.

      Windows instance:

      set JAVA_OPTS=%JAVA_OPTS% -Dapplication.home=C:\jboss405GA\server\default\deploy\
      set JAVA_OPTS=%JAVA_OPTS% -Dapplication.configFile=bin\security.ini


      Since the ear is exploded in the tmp directory, i am not able to
      access my home directory like this: System.getProperty("application.home")

      Any help is greatly appreciated.

      We use this on other app servers like OC4J and weblogic too.

      regards
      Yugandhar