ILOG JRules User Guide > Managing Rule Execution Server > Tasks > Administering Rule Execution Server > Adding Execution Unit (XU) JCA 1.5 Connection Factories > Adding a Connection Factory in WebLogic

In WebLogic 9.2, add a connection-instance element for each connection factory instance in the weblogic-ra.xml.

To add a connection factory in WebLogic modify the descriptor as follows:

<?xml version="1.0" encoding="UTF-8"?>
 
<weblogic-connector xmlns="http://www.bea.com/ns/weblogic/92"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.bea.com/ns/weblogic/92
                    http://www.bea.com/ns/weblogic/92/weblogic-ra.xsd">
   <jndi-name>eis/XUResourceAdapter</jndi-name>
 
   <security>
        <manage-as-principal-name>
            <principal-name>bres</principal-name>
        </manage-as-principal-name>
   </security>
 
   <outbound-resource-adapter>
 
   <connection-definition-group>
            
   <connection-factory-interface>
      javax.resource.cci.ConnectionFactory
   </connection-factory-interface>
 
      <connection-instance>
         <jndi-name>eis/XUConnectionFactory</jndi-name>
 
         <connection-properties>
            <logging>
               <log-filename>jrules_xu_cf.log</log-filename>
               <logging-enabled>true</logging-enabled>
            </logging>
            <properties>
               <property><name>traceLevel</name><value>ALL</value></property>
               <property><name>plugins</name> 
                   <value>{pluginClass=ilog.rules.bres.xu.management.IlrManagementMBeanPlugin,xuName=managementXU}
                   </value>
               </property>
            </properties>
         </connection-properties>
      </connection-instance>
 
   <connection-instance>
      <jndi-name>eis/XUConnectionFactory2</jndi-name>
      <connection-properties>
      <logging>
         <log-filename>jrules_xu_cf2.log</log-filename>
         <logging-enabled>true</logging-enabled>
      </logging>
      <properties>
         <property><name>traceLevel</name><value>ALL</value></property>
         <property><name>plugins</name>
             <value>{pluginClass=ilog.rules.bres.xu.management.IlrMonitoringMBeanPlugin,xuName=monitoringXU}
             </value>
         </property>
      </properties>
      </connection-properties>
   </connection-instance>
 
   </connection-definition-group>
 
   </outbound-resource-adapter>
 
</weblogic-connector>

Related Concepts

Rule Execution Server Management Model
Management and Monitoring

Related Tasks

Changing the Default Behavior of the Execution Stack

Related Samples and Tutorials

How to Automate Ruleset Management