2 Replies Latest reply on Oct 6, 2003 7:09 AM by Joran Stark

    Multiple application instances, with seperate scopes

    Joran Stark Newbie

      Hi
      I need to deploy two instances of my application (myApp.ear, containig myApp.war and myEjb.jar ), I use JBoss.3.2.1-Tomcat4.1.24.

      The problem is that servlet/JSP's and ejb's share a property-file (application specific), through a PropertyProvider-class with static methods. The application's reads the same property-file if they are deployed in the same directory. The property-file is located at the same place as the PropertyProvider-class.

      According to the "JBoss Adm&Dev (307)" a solution would be to enable EAR specific loader repository in jboss-app.xml. I tried this but it didn't change which property-file that was read:-(

      What have I missed?
      Does anyone have any suggestions how I can solve this problem?

      I would also prefere to not have the property-file located at the same place as the PropertyProvider-class, as this makes it more difficult to maintain the files, any tips?

      jboss-app.xml in myAppY.ear:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-app
      PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN"
      "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd">
      <jboss-app>
      <loader-repository>dot.com:loader=myAppY.ear</loader-repository>
      </jboss-app>


      -- Joran