2 Replies Latest reply on Oct 17, 2006 4:38 PM by lafr

    Multiple instances of same J2EE app running simulateneously

    emcgreal

      I have a J2EE app that can be customized for individual customers. The app itself is always the same except each one has a different database.
      I want to be able to deploy multiple instances with just different context-root fro each instance and a different DB - is that possible in JBoss? In WebLogic they have the concept of Domains - can I do something similar in JBoss?

      I could of course hadle this all in one app but I think that defeats the purpose of having an App server

        • 1. Re: Multiple instances of same J2EE app running simulateneou
          agentblueuk

          i'de like to do something similar, but in my case i want to have multiple instances of the same application as we a providing our product as a hosted solution and having multiple jboss instances all on their own ip address would seam rather wasteful

          • 2. Re: Multiple instances of same J2EE app running simulateneou
            lafr

            Yes it is possible.
            You'll have to use scoped classloading which is the default for version 404 AFAIK.
            Look at the Wikis for this topic.

            For the web-modules in aplication.xml we use this:

            <module>
             <web>
             <web-uri>ws-sales.war</web-uri>
             <context-root>/mbi-ws/@NAME@/sales</context-root>
             </web>
             </module>
            

            @NAME@ is replaced with a concrete name like "prod" or "test" on packaging/deployment.