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!!!
thanks, Pedro Salazar
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:
The 11099 is the port of JBOSS instance 2 (1099+10000).