2 Replies Latest reply on Jun 17, 2006 5:45 PM by garamirez

    JBoss 4.0.3SP1 Problems with multiple instances

    garamirez

      Hi,

      First of all, thanx to all Jboss team for this high quality software !!!

      Well, I'm trying to run various instances of jboss server(binded to different IP addresses), but everytime i try to run(even once) i get this message:

      Failed to connect to server localhost:1099 etc..


      The server(s) is being started with this command line:

      ./run.sh -c domain0 -b 10.10.10.10

      Does anyone knows how to solve this problem ?

      Many thanx in advance for your help.


      Germán.

        • 1. Re: JBoss 4.0.3SP1 Problems with multiple instances
          visolvejboss

          Hello,

          We were able to run multiple instances of JBoss with the following commands.

          # 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.

          Other option to run the multiple instances of JBoss is done by using two different configurations with different port numbers for each service.

          Suppose if you want to run JBoss in default and all mode configuration in same machine then you can umcomment 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"
           name="jboss.system:service=ServiceBindingManager">
           <attribute name="ServerName">ports-01</attribute>
           <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
           <attribute name="StoreFactoryClassName">
           org.jboss.services.binding.XMLServicesStoreFactory
           </attribute>
           </mbean>


          • 2. Re: JBoss 4.0.3SP1 Problems with multiple instances
            garamirez

            Many thanks for your help. Problem solved.

            Sincerely,
            Germán.