| Samples > Rule Execution Server Integration > How to Automate Ruleset Management |
How to Automate Ruleset Management |
PREVIOUS NEXT |
This sample will show you how to perform a number of ruleset management tasks, including deployment and ruleset management from a running Rule Execution Server.
To deploy and fetch rulesets, the sample uses JMX technology to remotely manage the Management Beans (MBeans) on the Rule Execution Server.
Remote JMX access uses the IlrBresModelMbean, 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 different management entities. It also provides some facilities for processing and retrieving RuleApp Archives.
The sample is implemented for several application servers that differ in their remote JMX API: BEA WebLogic Server 9.2 and 10.0, IBM WebSphere 6.1, and JBoss 4.0.x, which is the Samples Server we provide.
Key features include:
Installing the sample requires the Rule Execution Server Console.
To install the sample:
http://localhost:8080/bres
http://localhost:7001/bres
http://localhost:9080/bres
http://localhost:8080/bres
http://localhost:8080/bres
server.url=t3://localhost:7001. Specifies the URL where the Rule Execution Server Console is deployed.
server.profile.name=default. The WebSphere profile name where the Rule Execution Server Console is deployed.
JBOSS_HOME=${basedir}/../shared/tools/jboss. By default the variable is set to the JRules embedded JBoss server.
SUNAS82_HOME=${env.SUNAS82_HOME}. By default the variable is set to your SUNAS82_HOME environment variable.
The sample can only be run through the Samples Console.
To run the sample:
executionserver > jmxremote > <APPLICATION_SERVER_NAME>
run command. This command:
samples/jmxremote/data/JmxRuleappSample.jar RuleApp Archive on the Rule Execution Server.
checkStatusDate enables the ruleset status if [effective date] < current date < [expiration date]
JmxRuleappSample RuleApp
displayruleapp command to display the contents of the RuleApp in the Rule Execution Server.
The sample is located in <InstallDir>/executionserver/samples/jmxremote.
Because application servers such as BEA WebLogic and IBM WebSphere are currently using their own proprietary connections, they do not yet fully comply with the JSR 160: JavaTM Management Extensions (JMX) Remote API 1.0 standard (http://jcp.org/en/jsr/detail?id=160). Therefore, the method used to manage and retrieve Java Beans information on the Rule Execution Server is slightly different to the method specified by Java Management Extensions (JMX) 1.2.
JBossClient JMX client class
WebLogic92Client JMX client class
WebLogic100Client JMX client class
WebSphereClient JMX client class
JmxRemoteImpl class. Business class used by all implementations
CommonHandler class. Proxy
The goal of the Rule Execution Server JMX infrastructure is to provide a standard way to deploy, manage, and monitor the execution resources of the Rule Execution Server. The various MBeans of the Rule Execution Server model are the run-time proxies on each entity of the Rule Execution Server model.
The following graphic illustrates the infrastructure of the management mode.
The sample is rebuilt through the Samples Console.
To rebuild the sample:
executionserver > jmxremote > <APPLICATION_SERVER_NAME>
build command to build the Java client classes.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |