Sample: Automated ruleset management

This sample shows how to perform ruleset management tasks on Rule Execution Server.

Time required

10 minutes

Prerequisites

You must have Rule Execution Server installed to use this sample.

Description

This sample shows how to manage rulesets, including deployment and ruleset management from a running Rule Execution Server instance.

To deploy and retrieve rulesets, the sample uses the Java™ Management Extensions (JMX) technology to manage the Management Beans (MBeans) on the Rule Execution Server remotely. Remote JMX access uses the IlrJMXRepositoryMBean API, which acts as an interface for the Rule Execution Server management model. The Rule Execution Server model provides a way to create, list, remove, and modify the management entities. It also provides facilities for processing and retrieving RuleApp archives.

The sample is implemented for several application servers, each with a specific remote JMX API: WebSphere® Application Server 8.5, which is the sample server, Oracle WebLogic Server 12, and Tomcat 7.

The key features of this sample include:
  • Java Management Extensions (JMX) management
  • Ruleset management through JMX
  • Automatic ruleset deployment
  • The IlrJMXRepositoryMBean interface
  • The IlrJMXRuleAppMBean interface