ILOG JRules User Guide > Managing Rule Execution Server > Tasks > Administering Rule Execution Server > Changing the Default Behavior of the Execution Stack > Activating the XU MBean in J2SE

The XU MBean plug-in is used for execution statistics and ruleset update notification by the Rule Execution Server Console. In J2SE the XU MBean is not declared by default.

To allow the management stack to find the XU MBean in J2SE, you must first add a ra.xml in the classpath of the application (WEB-INF/classes for a Web application) to change the default behavior of the XU in J2SE, then edit the ra.xml (WEB-INF/classes/ra.xml) to modify the value of the property plugins.

Note
The default_ra.xml must not be modified. The ra.xml in the classpath overrides the default_ra.xml when you use the XU in J2SE.

You must use the same data source for the management stack and the execution stack. You must add in the classes directory in your Web application the ra.xml file that includes the declaration of the data source provider ilog.rules.bres.xu.ruleset.jdbc.IlrJdbcRulesetInformationProvider. By default, the J2SE provider does not use a data source.

To activate the XU MBean in J2SE:

  1. Add the following lines to the XU deployment descriptor:
<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=default},
      {pluginClass=ilog.rules.bres.ras.plugin.IlrExecutionTracePlugin}
   </config-property-value>
</config-property>
  1. Restart Tomcat to make sure that the modification has been registered.

Related Concepts

Execution Unit (XU)

Related Tasks

Configuring the XU for the XU Plug-in
Adding Execution Unit (XU) JCA 1.5 Connection Factories