1 Reply Latest reply on Sep 23, 2003 4:04 AM by pedrosalazar

    clustering in the same host: wrong jboss shutdown

    pedrosalazar

      Greetings,

      I have 2 jboss in my linux box. I changed the second one the following files (as suggested here in the list):

      conf\jboss-service.xml and change 8083 to 28038, 1099 to 21099
      deploy\cluster-service.xml and change 1100 to 21100
      deploy\http-invoker.sar\META-INF\jboss-service.xml and change all :8080 to :28080
      deploy\jbossweb-tomcat.sar\META-INF\jboss-service.xml and change 8080 to 28080, 8009 to 28009
      deploy\jms\jbossmq-service.xml and change 8090, 8091, 8092, 8093 to 28090, 28091, 28092, 28093
      conf\jacorb.properties and change 4711 to 24711, 3528 to 23528

      I also added a new redhat service script but I changed the JBOSS_HOME to <jboss2> directory (instead using <jboss1>).

      I changed the run.sh script to have in the top JBOSS_HOME=<jboss1>/<jboss2>, in each jboss server.

      The JBOSS servers started just fine. However, when I want to shutdown the <jboss2> , is the <jboss1> that shutdown!!!

      Any hints?

      thanks, Pedro Salazar

        • 1. Re: clustering in the same host: wrong jboss shutdown
          pedrosalazar

          I already find out why is that happens.

          I have to pass the JNDI URL of the JBOSS instance I want to select. By default, it's used the localhost:1099 (always the JBOSS instance 1). So, I have to pass the argument for JBOSS instance 2 the following:

          --server=localhost:11099

          The 11099 is the port of JBOSS instance 2 (1099+10000).