tags:

views:

2026

answers:

2

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?

+1  A: 

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

Lloyd Meinholz
Yes.But as far as I can see not only bindings-jboss-beans.xml should be changed.Next files should be changed too:jboss-5.1.0.GA\server\default\deploy\ejb3-connectors-jboss-beans.xml jboss-5.1.0.GA\server\default\deploy\jbossweb.sar\server.xml Is it correct?
Vladimir Bezugliy
Those are the files that I know of. Things do change between releases of JBoss so that makes things difficult to keep track of. I would start the first server, carefully go through the log files and verify which ports are being used. Make the modifications of the second server, start it and go through the log files. Some ports in use are also determined by which JBoss services you have enabled (Messaging, WS, etc.) and which profile you are using.
Lloyd Meinholz
A: 

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

I.e. 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: e.g. via -Djboss.service.binding.set=ports-default and -Djboss.service.binding.set=ports-01 and -Djboss.service.binding.set=ports-02 ...

Conor
this worked for me out-of-the-box , with JBoss 5.1.0.GA , except that the second instance throws an exception that there is a lock on the hypersonic db. Do I need to manually create instance directories and configure hypersonic separately?
djangofan