5 Replies Latest reply on Aug 7, 2007 11:51 AM by ritu2p

    Multipe JBOSS server (with different versions)

    dhaupt

      hello,

      Does someone know whether it is possible to operate several JBOSS server with different versions on a physically server?

      There is a Jboss 3.2.3 on a Win2k server. Now I must develop paralell in addition 3.2.5 on the same server. Can that be done? And if how?

      Thanks for answer.

      BG Dominik

        • 1. Re: Multipe JBOSS server (with different versions)
          ritu2p

          I have a similar situation. I have an installation of JBoss 3.2.7 running on a Windows 2003 server that cannot be disturbed.
          Is it possible to install and run a newer version of JBoss (4.2.1) on the same server without conflicts?
          In both installations, I would like to run the default instance of the server as a Windows Service ... for the 3.2.7 version, the service is already configured and running.

          Thanks for any help.
          Ritu

          • 2. Re: Multipe JBOSS server (with different versions)
            peterj

            Yes, it can be done. I have multiple versions of JBoss AS on my PC and on occasion I run multiple copies at the same time.

            To do this, install each version of JBoss AS in a separate location and then follow the instructions at http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstancesOnOneMachine to either configure unique ports or bind to unique IP addresses.

            • 3. Re: Multipe JBOSS server (with different versions)

              To run multiple instances of JBoss you need to ensure that there are:

              No directory/file conflicts. So install it in a different directory.
              No database conflicts. So modify DataSource definitions to use different data bases.
              No TCP/IP port conflicts. This is the hardest since JBoss uses quite a few ports. For example JNDI 1099, Tomcat 8080 etc. See the wiki at http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigurePorts to see how these can be changed.

              Its worth searching the forums and the wiki to find answers.

              Gary

              • 4. Re: Multipe JBOSS server (with different versions)
                peterj

                One more thing. Each version of JBoss AS prefers a different Java version. For example, you might want to use JVM 1.4.2 for JBoss AS 3.2.7, but JVM 5.0 for JBoss AS 4.2.1. That is also no problem. Install both JVMs, and then in run.bat or run.sh set JAVA_HOME to the installation directory of the preferred JVM.

                • 5. Re: Multipe JBOSS server (with different versions)
                  ritu2p

                  Thanks for the pointers.
                  For the current installation of JBoss AS (v3.2.7), the JAVA_HOME has been set as an ENVIRONMENT VARIABLE. Hopefully, when I specify it in the run.bat file for the new installation, this value will override the env. variable set globally.

                  I will give it a shot and also try to configure JavaService for the 4.2.1 installation.

                  Thanks again.
                  Ritu