Transparent decision service MBean

You can manage transparent decision services by using an MBean API.

A transparent decision service is visible in the Rule Execution Server console as soon as the IlrDecisionServiceMBeanManager.register method is called. The web service generator in Rule Designer generates a Listener class that implements ServletContextListener and calls this method.

For example:
MBEAN_MANAGER = new IlrDecisionServiceMBeanManager(jmxprops);
try {
   MBEAN_MANAGER.register(
   "MyruleappMyrulesetDecisionService",
   "/Myruleapp/Myruleset", props);
} catch (IlrDecisionServiceMBeanException e) {
   System.err.println("Transparent decision service MBean registration error:");
   e.printStackTrace();
}

The management console retrieves all transparent decision services across linked application servers, for example all servers in the same WebSphere® Application Server cell or WebLogic Server domain. The only way to remove a transparent decision service is to call the unregister method.

The management console calculates statistics at the level of transparent decision services, from the information that is passed to the IlrDecisionServiceMBeanManager.addMeasurement and IlrDecisionServiceMBeanManager.addError methods.

For more information about the methods that are available to the transparent decision service MBean, see IlrDecisionServiceMBean.

The activation or deactivation of the transparent decision service is a flag on the transparent decision service MBean. Before the client application starts execution, it must check the state of this flag.