Managing RuleApps by using the MBeans accessor API
By using the JMX MBeans accessor API, you can add and register a new RuleApp or ruleset, and remove or unregister a RuleApp. You can also retrieve the RuleApp MBean name. If Rule Execution Server is deployed to a server cluster, you can register the model on another server.
Before you begin
Before you use the JMX API, make sure that the necessary
JAR file is added to your class path and that you have sufficient
access rights:
- You must include the <InstallDir>/executionserver/lib/jrules-res-manage-tools.jar file in the class path of your application. For example, if you use this API in a servlet, put the file in the META-INF/lib directory of your web application.
- To access an MBean server, you must have access rights equivalent to administrator rights.
About this task
Decision Server provides a server-side MBean accessor API for you to deploy each entity, and a notification mechanism for model changes.
The API consists
of the following interfaces:
- Use IlrJMXRepositoryMBean to create, list, and remove RuleApps (name and version).
- Use IlrJMXRuleAppMBean to create, list, and remove rulesets (name and version).
- Use IlrJMXRulesetMBean to manage ruleset resources.