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 OC4J

In OC4J, add a connector-factory element for each connection factory instance in the oc4j-ra.xml.

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

<?xml version="1.0" encoding="UTF-8"?>
 
<oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd"
    schema-major-version="10" schema-minor-version="0">
 
   <connector-factory location="eis/XUManagementConnectionFactory" 
                                connector-name="XUManagement">
         <config-property name="traceLevel" value="ALL"/>
         <config-property name="plugins" 
                          value="{pluginClass=ilog.rules.bres.xu.management.IlrManagementMBeanPlugin,xuName=managementXU}"/>
 
      <connection-pooling use="private"></connection-pooling>
      <log>
         <file path="jrules_xu_management.log" />
      </log>
        
      <connectionfactory-interface>
         javax.resource.cci.ConnectionFactory
      </connectionfactory-interface>
   </connector-factory>
 
   <connector-factory location="eis/XUMonitoringConnectionFactory" 
                                connector-name="XUMonitoring">
      <config-property name="traceLevel" value="FINE"/>
      <config-property name="plugins" 
                       value="{pluginClass=ilog.rules.bres.xu.management.IlrMonitoringMBeanPlugin,xuName=monitoringXU}"/>
 
      <connection-pooling use="private"></connection-pooling>
      <log>
         <file path="jrules_xu_monitoring.log" />
      </log>
        
      <connectionfactory-interface>
         javax.resource.cci.ConnectionFactory
      </connectionfactory-interface>
   </connector-factory>
 
</oc4j-connector-factories>

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