X

Follow us on Facebook

Configuring multiple JBoss instances on single machine

1. Copy the contents of your default directory into a new folder say instance2
2. In your jboss\server\instance2\conf folder modify the file jboss-service.xml by uncommenting the below section



<mbean code="org.jboss.services.binding.ServiceBindingManager"
name="jboss.system:service=ServiceBindingManager">


<attribute name="ServerName">ports-02</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>


Change the attribute name to either port-01 (which points to port 8180) or port-02 (which points to port 8280) or port-03 (which points to port 8380)

3. In your eclipse: add new server
4. Since we mentioned port-02 in jboss-service.xml, we need t o mention the port as 8280 in the Add new JBoss screen.
5.Select the server configuration as “Other-type your own here” and then change that to "instance2"
6.And then start your second JBoss server!



Note –
1. You might get “Address already in use: JVM_Bind:8280” then try changing your port-02 to port-01 or port-03
2. At max you can have four instances running
3. Having more JBoss running on your system makes the applications run much slower
Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment