-
1. Re: Multiple Instance of JBoss
visolvejboss Jul 24, 2006 11:42 PM (in response to saravanag)Hello,
Refer the link http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85108
This might be helpful for you. -
2. Re: Multiple Instance of JBoss
saravanag Jul 25, 2006 12:54 PM (in response to saravanag)In the link u mentioned that
"Other option to run the multiple instances of JBoss is done by using two different configurations with different port numbers for each service. "
Can u give one example of which conf files to change and how to give different port number for each services.
Thanks in Advance
Ganesh -
3. Re: Multiple Instance of JBoss
visolvejboss Jul 25, 2006 11:58 PM (in response to saravanag)Hello,
The details were explained in that link itself. For your reference we will provide the same information here.
There are two methods of running multiple instances.
1. With the use ipaddress parameter
# run.sh -b localhost
# run.sh -b {ipaddess}
Note that, with this method we are starting two instances of JBoss with the same configuration mode (default). One of the problem with this method is second JBoss instance will thorw an error if you configured to run Hsqldb as your database.
2. By specifying the different ports for each service
To excute this method, you should have two configurations and you should specify different portnumber for each service in this two configurations.
Manually changing the port number for each service is tedious job. So, we can use the ServiceBinding service avaiable in JBoss.
Take an example, you want to run default and all mode in the same server. You can achive this by umcommenting the Service Binding section of the jboss-service.xml file in the conf directory of any of configuration (default or all).<mbean code="org.jboss.services.binding.ServiceBindingManager" name="jboss.system:service=ServiceBindingManager"> <attribute name="ServerName">ports-01</attribute> <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute> <attribute name="StoreFactoryClassName"> org.jboss.services.binding.XMLServicesStoreFactory </attribute> </mbean>
-
4. Re: Multiple Instance of JBoss
saravanag Jul 26, 2006 2:20 PM (in response to saravanag)Hi,
Thanks for your solution.
I created two instance of jboss. One is default and other one as dev01 under server directory.
And changed the jboss-service.xml as
ports-01
in another instance i confugured as
ports-default
Also I changed all the port numbers in jboss-service.xml for the new instance
Thanks
Ganesh