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 JBoss

In JBoss 4.0.x, add a tx-connection-factory element for each connection factory instance in the jrules-bres-xu-JBoss40-ds.xml.

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

<?xml version="1.0" encoding="UTF-8"?>
 
<connection-factories>
  <tx-connection-factory>
    <jndi-name>eis/XUConnectionFactory</jndi-name>
 
    <application-managed-security/>
 
    <rar-name>jrules-bres-xu-JBOSS40.rar</rar-name> 
    <connection-definition>
        javax.resource.cci.ConnectionFactory
    </connection-definition>
 
    <local-transaction/>
 
    <config-property>
       <config-property-name>plugins</config-property-name>
       <config-property-type>java.lang.String</config-property-type>
       <config-property-value>{pluginClass=ilog.rules.bres.xu.management.IlrManagementMBeanPlugin,xuName=managementXU}</config-property-value>
    </config-property>
 
    <adapter-display-name>XU</adapter-display-name>
  </tx-connection-factory>
 
  <tx-connection-factory>
    <jndi-name>eis/AdditionalXUConnectionFactory</jndi-name>
    <application-managed-security/>
    <rar-name>jrules-bres-xu-JBOSS40.rar</rar-name> 
    <connection-definition>
        javax.resource.cci.ConnectionFactory
    </connection-definition>
 
    <local-transaction/>
 
    <config-property>
       <config-property-name>plugins</config-property-name>
       <config-property-type>java.lang.String</config-property-type>
       <config-property-value>{pluginClass=ilog.rules.bres.xu.management.IlrMonitoringMBeanPlugin,xuName=monitoringXU}</config-property-value>
    </config-property>
 
    <adapter-display-name>AnotherXU</adapter-display-name>
 
  </tx-connection-factory>
</connection-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