ILOG JRules User Guide > Managing Rule Execution Server > Tasks > Administering Rule Execution Server > Invalidating Rulesets in Local VMs > Invalidating a Ruleset on J2EE

In J2EE you can notify the Execution Unit (XU) that a ruleset is no longer valid using a rule session provider and the invalidate method. The invalidate method takes a canonical ruleset path. If you want to get this path, use the solveRulesetPath method.

To notify an XU on an application server that a ruleset is no longer valid:

  1. Get the rule session provider
IlrRuleSessionProvider rsProvider = new
IlrRuleSessionProviderFactory.Builder(IlrRuleSessionProviderFactory.
SIMPLE_RULESESSION_PROVIDER).build();
  1. Create the management session
IlrManagementSession managementSession = rsProvider.createManagementSession();
  1. Invalidate a ruleset
String rulesetPath = "/ruleApp/ruleset";
managementSession.invalidate(rulesetPath);

Related Concepts

Rule Execution Server Management Model
Management and Monitoring

Related Tasks

Management Model API Access

Related Reference

RuleApp Management Using MBeans Accessor API

Related Samples and Tutorials

How to Automate Ruleset Management