JBoss EAP 使用 Binding Manager

For JBoss 4.3.x:

 

1. edit JBoss_EAP_4.3.0.GA_CP02_sts\jboss-as\server\default\conf\jboss-service.xml

2. enable mbean:

 

 

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

 

 

Fo JBoss 5.1.x:

 

1. Edit  JBoss_EAP_5.1.1\jboss-eap-5.1\jboss-as\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml

2. Change <parameter>${jboss.service.binding.set:ports-default}</parameter>

 

   <!-- Provides management tools with a ProfileService ManagementView 
        interface to the SBM and its components -->
   <bean name="ServiceBindingManagementObject" 
         class="org.jboss.services.binding.managed.ServiceBindingManagementObject">
         
      <constructor>
         <!-- The name of the set of bindings to use for this server -->
         <parameter>${jboss.service.binding.set:ports-default}</parameter>
          
         <!--  The binding sets -->
         <parameter>
            <set>
               <inject bean="PortsDefaultBindings"/>
               <inject bean="Ports01Bindings"/>
               <inject bean="Ports02Bindings"/>
               <inject bean="Ports03Bindings"/>
            </set>
         </parameter>
         
         <!-- Base binding metadata that is used to create bindings for each set -->
         <parameter><inject bean="StandardBindings"/></parameter>
         
      </constructor>
   </bean>
 

 

你可能感兴趣的:(manager)