Difference between revisions of "Several JBoss instances in the same server"
From OpenKM Documentation
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
You can have several JBoss instances in the same server, and only need to modify some default JBoss ports. | You can have several JBoss instances in the same server, and only need to modify some default JBoss ports. | ||
− | + | * Edit ''$JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar/server.xml'' and change these ports: 8080, 8009 and 8443. | |
− | + | * Edit ''$JBOSS_HOME/server/default/conf/jboss-service.xml'' and change these ports: 8083, 4444, 4445,4446, 1098 and 1099. | |
− | + | * Edit ''$JBOSS_HOME/server/default/deploy/jms/uil2-service.xml'' and change this port: 8093. | |
− | + | * Edit ''$JBOSS_HOME/server/default/deploy/ejb3.deployer/META-INF/jboss-service.xml'' and change this port: 3873. | |
+ | * Edit ''$JBOSS_HOME/bin/shutdown.sh'' and add to the last "localhost" line the new HTTP port. | ||
<source lang="bash"> | <source lang="bash"> | ||
Line 14: | Line 15: | ||
</source> | </source> | ||
− | {{Advice|The | + | {{Advice|The simplest way is increasing the default port by +1, keeping in mind the pairs 4444-4446 and 1098-1099 where your have to add +3,+2 because they are consecutive.}} |
+ | |||
+ | Following this advice, the new ports will be: | ||
* 8080 -> 8081 (Put this one in the shutdown.sh script) | * 8080 -> 8081 (Put this one in the shutdown.sh script) | ||
* 8009 -> 8010 | * 8009 -> 8010 | ||
* 8443 -> 8444 | * 8443 -> 8444 | ||
* 8083 -> 8084 | * 8083 -> 8084 | ||
− | * 4444 -> | + | * 4444 -> 4447 (+3 because consecutive) |
− | * 4445 -> | + | * 4445 -> 4448 (+3 because consecutive) |
− | * 1098 -> 1100 | + | * 4446 -> 4449 (+3 because consecutive) |
− | * 1099 -> 1101 | + | * 1098 -> 1100 (+2 because consecutive) |
− | * 8093 -> 8094 | + | * 1099 -> 1101 (+2 because consecutive) |
+ | * 8093 -> 8094 | ||
+ | * 3873 -> 3874 | ||
More info about this topic at: | More info about this topic at: | ||
− | * http:// | + | * http://community.jboss.org/wiki/ConfigurePorts. |
− | * http:// | + | * http://community.jboss.org/wiki/VersionOfTomcatInJBossAS |
[[Category: Installation Guide]] | [[Category: Installation Guide]] |
Latest revision as of 12:11, 11 November 2011
You can have several JBoss instances in the same server, and only need to modify some default JBoss ports.
- Edit $JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar/server.xml and change these ports: 8080, 8009 and 8443.
- Edit $JBOSS_HOME/server/default/conf/jboss-service.xml and change these ports: 8083, 4444, 4445,4446, 1098 and 1099.
- Edit $JBOSS_HOME/server/default/deploy/jms/uil2-service.xml and change this port: 8093.
- Edit $JBOSS_HOME/server/default/deploy/ejb3.deployer/META-INF/jboss-service.xml and change this port: 3873.
- Edit $JBOSS_HOME/bin/shutdown.sh and add to the last "localhost" line the new HTTP port.
# Execute the JVM
exec "$JAVA" \
$JAVA_OPTS \
-classpath $JBOSS_CLASSPATH \
org.jboss.Shutdown localhost 8081 "$@"
The simplest way is increasing the default port by +1, keeping in mind the pairs 4444-4446 and 1098-1099 where your have to add +3,+2 because they are consecutive. |
Following this advice, the new ports will be:
- 8080 -> 8081 (Put this one in the shutdown.sh script)
- 8009 -> 8010
- 8443 -> 8444
- 8083 -> 8084
- 4444 -> 4447 (+3 because consecutive)
- 4445 -> 4448 (+3 because consecutive)
- 4446 -> 4449 (+3 because consecutive)
- 1098 -> 1100 (+2 because consecutive)
- 1099 -> 1101 (+2 because consecutive)
- 8093 -> 8094
- 3873 -> 3874
More info about this topic at: