1 Reply Latest reply on Feb 17, 2010 4:31 PM by alesj

    How to get the unzipped location of the ear file?

    ravi_punati

      Hi:

           We are moving an application from JBoss 4.0.4 to JBoss 5.1. The application is clustered and farm deployed.

      The Legacy application has some code which is resolving to two different locations. Here is the code.

       

      Code:

          

      String ServerRoot = ChartDefinition.class.getClassLoader().getResource("corda").getFile();

       

       

      JBoss 4.0.4

      serverRoot = C:/Java_Env/jboss-4.0.4.GA/server/all/tmp/deploy/tmp2169762820022547025REL696.ear-contents/REL696-exp.war/WEB-INF/classes/corda/

       

      JBoss 5.1

      serverRoot = /C:/Java_Env/jboss-5.1.0.GA/server/all/farm/REL697.ear/REL697.war/WEB-INF/classes/

       

      We need to get the same location as the 4.0.4 for loading the artifacts. We understand this is not the right way of doing.

       

      What is the call I can make to get the dynamic location of the unzipped ear file in clustered farm deployment?

       

      Thanks for your help,

      Ravi.