Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jimmy Hawkins   on Jan 08 In Java Category.

  
Question Answered By: Kawthar Malik   on Jan 08

Its not enough to change the HTTP port, u need to change a lot of
ports for run 2 jboss  instances in same mashin.
There's a preconfigured service in JBoss server/config-name/conf
directory that you can use to easily assign different ports to all
services in JBoss. Locate a ServiceBindingManager service in your
conf/jboss-service.xml file.

<mbean code="org.jboss.services.binding.ServiceBindingManager"
name="jboss.system:service=ServiceBindingManager">
<attribute name="ServerName">ports-01</attribute>
<attribute name="StoreURL">../docs/examples/binding-
manager/sample-bindings.xml</attribute>
<attribute name="StoreFactoryClassName">
org.jboss.services.binding.XMLServicesStoreFactory
</attribute>
</mbean>
This service points to a sample-bindings.xml file in the docs
directory that contains a sample of two separate port  configurations
for JBoss. By using the ServiceBindingManager all the port
configuration information in your server instance's configuration
files are overridden from this template. E.g. ports-01 configuration
for JBoss node 1 and ports-02 configuration for server node2.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on changing the port number on JBOSS Or get search suggestion and latest updates.


Tagged: