Rule Execution Server MBeans

Rule Execution Server relies on a management model. This model is implemented as a set of JMX MBeans that are deployed to the MBean server. Using the MBean API, you can access a Rule Execution Server repository factory and run management tasks on RuleApps and rulesets.

Using the provided JMX API, you can express as JMX bean methods any action that you can do from the Rule Execution Server console.

The Rule Execution Server JMX infrastructure provides a standard way to deploy, manage, and monitor Rule Execution Server execution resources.
Note: In a cluster configuration, the scope of the Java™ Management Extensions (JMX) API is typically that of the WebSphere® Application Server cell. Therefore, an error might be raised if the management stack finds no Rule Execution Server console or more than one. For more information, see technote Limitations.
JMX management diagram
The various Rule Execution Server model MBeans are the runtime proxies on each entity of the Rule Execution Server model.
  • The IlrJMXRepositoryMBean interface is the root of the Rule Execution Server management model. It controls every RuleApp that is deployed on Rule Execution Server. This MBean can add and remove references to the RuleApps in the model.
  • The IlrJMXRuleAppMBean interface is a management entity to control the RuleApp that are deployed to Rule Execution Server. This MBean can add and remove references to the rulesets in RuleApps.
  • The IlrJMXRulesetMBean interface is the management entity that represents the execution resources for the execution unit (XU). This MBean provides some runtime metrics of the execution. These metrics are computed from the various data that is collected on each XU instance in a cluster. This MBean support a specific API. You can use that API to set the resources and properties that are used at execution time and provides a “hot” deployment entry point to update the rules in a running Rule Execution Server instance.
To access a Rule Execution Server repository factory and perform management tasks by using the public API, call the getRepositoryFactory method on the session bean named IlrManagementSession. This session bean has the same factory as Decision Server rule sessions and screens the Common Client Interface (CCI) connection of the execution unit (XU) from the user.
Java SE
If you use the Java SE rule session factory (IlrJ2SESessionFactory), the IlrManagementSession.getRepositoryFactory method returns a Java SE repository factory. Use the factory to create a RuleApp and ruleset, or to export a RuleApp archive, and other similar actions.
if (sessionFactory == null) {
    sessionFactory = new IlrJ2SESessionFactory(new PrintWriter(System.out)); 
}
POJO
If you use the POJO rule session factory (IlrPOJOSessionFactory), the IlrManagementSession.getRepositoryFactory method returns a JMX repository factory. Use the factory to create a RuleApp and ruleset, export a RuleApp archive, and other similar actions. The repository is directly connected to the management MBeans of the Rule Execution Server console.
IlrPOJOSessionFactory sf = new IlrPOJOSessionFactory();

The IlrRepositoryFactory interface provides the createRepository method. This method creates a RuleApp information container. Use it to add and remove RuleApps.