Difference between revisions of "Several JBoss in the same server"
(→Only one IP) |
|||
Line 10: | Line 10: | ||
== Only one IP == | == 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. | 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: | More info at: |
Revision as of 17:20, 20 October 2010
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: