简体   繁体   中英

Setting up multiple instances of JBoss on the same machine

I've found next page in JBoss Community - http://www.jboss.org/community/wiki/ConfigurePorts

There is next text:


Edit server/default/conf/bootstrap/bindings.xml


But I do not see file bindings.xml in JBoss 5.1.0 GA.

Does anyone know - what files should be changed in order to hav ability to start several instances of JBoss 5.1 on the same machine?

Try with the following steps:

1) Copy the default folder with new name: instance name

2) In jboss-service.xml Uncomment the ServiceBindingManager mbean and change the ServerName to ports-01 or 02 or 03 eg:ports-01 and ports-01/02/03 configuration should be there in sample-bindings.xml(present in docs/examples/binding-manager) And make the changes in all the ports mentioned under ports-01/02/03 tags, So that ports will not get conflict. Remember the server will run on the binding port like 8080/8180/8182.

from cmd promt go to the bin folder and run the instances with cmd:

run -c instancename

Thanks

Ankit Adlakha

The Release Notes reference bindings.xml but it isn't there in the jdk6 or vanilla version.

I looks like the file has been moved and the structure modified. It now lives in:

${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

Use the script that I wrote here . I requires you download libs from the YAJSW project, but it will run multiple instances straight out of the box (as registered windows services) if you use one copy of my script per instance.

If you're still stuck and can't find this file (it's in 5.0.1) then perhaps the defaults work for you.

Ie I've set up multiple instances of JBoss 5.0.1 on one machine, using different ports.The 5.0 clustering guide explains how to do this for various scenarios. For example: See "section 1.1.2: Scenario 3: Two Nodes on a Single, Non-Multihomed, Server". https://www.jboss.org/community/wiki/JBossAS5ClusteringGuide

I didn't specify ports directly - but specified different pre-installed binding sets: eg via -Djboss.service.binding.set=ports-default and -Djboss.service.binding.set=ports-01 and -Djboss.service.binding.set=ports-02 ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM