运行JBossAS多个实例的方法

1、将JBOSS_HOME\server目录下的default或者all目录复制一份,并将其修改为node1;

2、编辑node1\conf\jboss-service.xml,定位到如下被注释掉的xml片段:

<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> 

去掉注释;

3、以“-c”选项先后启动两个实例,例如:

./run.sh -cdefault

./run.sh -cnode1



你可能感兴趣的:(C++,c,xml,jboss,C#)