Several JBoss in the same server

From OpenKM Documentation
Revision as of 17:20, 20 October 2010 by Pavila (talk | contribs)

Jump to: navigation, search

Using multiple IPs

If your server has several IP addresses assigned, the preferred solution is to use the -b command line option to bind each instance of JBoss AS to a particular IP address:

./run.sh -b 192.168.0.10

See also:

Only one IP

Modify $JBOSS_HOME/server/default/conf/jboss-service.xml and uncomment the "Service Binding" section and select a "ServerName" value from sample-bindings.xml. See $JBOSS_HOME/docs/examples/binding-manager/sample-bindings.xml "ports-default" entries for all JBoss port properties.

To shutdown the different instances : Execute the shutdown.sh script from the $JBOSS_HOME/bin directory with extra arguments. If you have configured 2 instances of JBoss, one on port 1099 (the NamingService port) and another on 1199, then in order to shutdown the first JBoss instance use this command:

./bin/shutdown.sh -s jnp://localhost:1099

And for the second instance, use this command:

./bin/shutdown.bat -s jnp://localhost:1199

More info at: