Before you deploy the Java™ XOM
of a rule project, you can use the Java Build Path properties
of the Java project
to specify what libraries are exported and in what order.
About this task
To execute a ruleset with Java XOM management by using an
instance of a rule engine, you create a Java project to define the
Java XOM. That Java project is associated with your rule project. You
can use the export function of the Java project to select and order the libraries
that you want to export when you deploy a Java XOM with Java class dependencies.
Procedure
To deploy a Java XOM with Java class dependencies:
- In the Rule Explorer view, select the Java project name, and then click .
You can also right-click the Java project name
and select Properties from the contextual menu.
- Click Java Build Path in the list
of properties.
- In the Java Build Path page of the Properties dialog,
click the Order and Export tab to display the
list of exported entries.
You can define the order
in the build class path. By using this tab, you can specify what libraries
you want to export when the XOM is deployed to a Rule Execution Server instance.
- Select or clear the dependencies and use the ordering buttons
to order the entries in the build path, and then click OK.
Only the selected JAR files will be deployed to the Rule Execution Server repository.
Results
The classes are searched for in the order in which they
appear in this list. If the same class exists in two different libraries,
the order you chose in the build path determines which library comes
first, and the class version of that library is used.