3 Replies Latest reply on Oct 13, 2004 6:09 AM by frito

    2 deployments on one server

    pasche

      I use jboss to deploy a special web application. now I want to develop this application.

      I need to deploy the same application two times on one server. the first one should always be achievable, the second one I want to develop.

      It es possible to deploy the same application on one server two times ?

        • 1. Re: 2 deployments on one server
          frito

          No problem.
          Configure isolated loader repositories for each deployment unit. Read the wiki for this:
          http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration.
          Don't forget to configure different URLs for your web application and perhaps different security settings???

          • 2. Re: 2 deployments on one server
            pasche

            The problem I have is that the application needs an exact name (xyz.war). Parts of the application need this name so it is impossible to rename the second one.

            the url you posted doesn´t help me out :-(

            • 3. Re: 2 deployments on one server
              frito

              You can deploy exactly the same application twice (and even more often). The units (e.g. xyz.war) can hold the same resources and have the same name at all.
              But you have to configure the loader repositories as described above. And you have to use different URLs for your web app (configured in the deplyoment descriptor of the war) and different JNDI names for your EJBs (configured in the deployment descriptor of the EJB jars).

              One thing I don't understand is, why parts of your application need the name of the WAR file...