4 Replies Latest reply on Jul 26, 2006 2:20 PM by Ganesh Sundaresan

    Multiple Instance of JBoss

    Ganesh Sundaresan Newbie


      I have installed JBoss 4.0.2.
      How do I create Multiple Instance of JBoss with only one JBoss Installed?

      Thanks In Adavnce


        • 2. Re: Multiple Instance of JBoss
          Ganesh Sundaresan Newbie

          In the link u mentioned that
          "Other option to run the multiple instances of JBoss is done by using two different configurations with different port numbers for each service. "

          Can u give one example of which conf files to change and how to give different port number for each services.

          Thanks in Advance

          • 3. Re: Multiple Instance of JBoss
            VisolveGroup Novice


            The details were explained in that link itself. For your reference we will provide the same information here.

            There are two methods of running multiple instances.

            1. With the use ipaddress parameter

            # run.sh -b localhost
            # run.sh -b {ipaddess}

            Note that, with this method we are starting two instances of JBoss with the same configuration mode (default). One of the problem with this method is second JBoss instance will thorw an error if you configured to run Hsqldb as your database.

            2. By specifying the different ports for each service

            To excute this method, you should have two configurations and you should specify different portnumber for each service in this two configurations.

            Manually changing the port number for each service is tedious job. So, we can use the ServiceBinding service avaiable in JBoss.

            Take an example, you want to run default and all mode in the same server. You can achive this by umcommenting the Service Binding section of the jboss-service.xml file in the conf directory of any of configuration (default or all).

            <mbean code="org.jboss.services.binding.ServiceBindingManager"
             <attribute name="ServerName">ports-01</attribute>
             <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
             <attribute name="StoreFactoryClassName">

            • 4. Re: Multiple Instance of JBoss
              Ganesh Sundaresan Newbie


              Thanks for your solution.

              I created two instance of jboss. One is default and other one as dev01 under server directory.

              And changed the jboss-service.xml as
              in another instance i confugured as

              Also I changed all the port numbers in jboss-service.xml for the new instance