ILOG JRules User Guide > Executing Rules > Tasks > Executing a Ruleset Using Rule Execution Server > Overview: Execution Code Generators

To invoke a ruleset on Rule Execution Server you must write execution code to locate a deployed RuleApp that contains the ruleset on an application server. This code is best written in Rule Studio inside a client project. Rule Studio provides several project generators to assist with this task:

You can also extend the provided generators to generate these project components. For more information see Maintaining Execution Code Generators.

Because JRules is divided into modules (executionserver, scenariomanager, studio, teamserver, jrules2dotnet), each module contains its own lib directory.

You need to define executionserver.home before importing classpath-executionserver.xml, and engine.lib.dir for classpath-engine.xml. The executionserver.home value should be <InstallDir>/executionserver and the engine.lib.dir value should be <InstallDir>/executionserver/lib. There is no need to define this property when importing classpath-executionserver.xml.

An example of an Ant build file that uses the executionserver.j2se.classpath is provided in <InstallDir>/executionserver/samples/j2serulesession/build.xml. This should give you enough information to make your packaging and show how to use the classpath-executionserver.xml file.

Note

Related Concepts

Rule Execution Server
Ruleset Parameters

Related Tasks

Creating a POJO Client Project for RuleApps
Creating a Web Service or Monitored Transparent Decision Service Project for RuleApps
Creating an SCA Component Client Project for RuleApps
Creating an SSP Setup Client Project for RuleApps
Adding RuleApp Execution Artifacts to an Existing Project
Maintaining Execution Code Generators
Implementing a Ruleset Execution Interceptor
Invoking a Ruleset Using a Stateless Rule Session
Invoking a Ruleset Using a Stateful Rule Session
Invoking a Ruleset Using a Message-Driven Rule Bean
Tracing Ruleset Execution
Monitoring Ruleset Execution Using the MBeans Accessor API
Handling Rule Engine Exceptions in Rule Execution Server

Related Samples and Tutorials

How to Use a Rule Session in Java SE
How to Use a Rule Session in Java EE
How to Use a Message-Driven Rule Bean