Have a look around for information on the BindingService, this allows you to specify the ports to be used for multiple JBoss configurations so that they can be started concurrently.
I am also facing a similar problem. I need to run 2 instances of JBoss in 1 machine. Also I want to deploy the same appplication (ear) in these two servers with the only difference that the two applications point to two different databases.
Is it possible to have 2 instance running on a single machine? Is it possible to deploy the same application in that with the above mentioned manner?
Is it a right method? Can anybody suggest a better approach?
Thanks in anticipation...
Is it possible to run two instances of JBoss on one machine?
Yes, look for information on the binding service.
Can you run the same application on both instanced?
Yes the two instances are not related to each other.
Thanks for ur response..Where we can find this binding sevice?Can u make it clear?
Read the conf/jboss-service.xml. It comes with an example.
how would you shut down the second instance?
I tried it by giving different bindings..and now i am able to run 2 instances ..But accessing the 2nd application after running the first, it gives me a error like
Thanks for the information. Does it mean that we have to change all the binding ports in the jboss-service.xml?
If we change the JNDI port, then the look up needs to be changed, right? If it is like that, can you give a sample code for that?