Packaging Java rule sessions for Java SE
To be able to run your application in a web container, you must package a rule session JAR file for Java™ SE.
About this task
Important: For
customized Java SE applications that run on a Tomcat or
WebSphere
Liberty server, declare each
embedded XU with a unique xuName. For example,
xuName=xuMyAppName.Note:
By default, the persistence type is the same for Java XOM resources as for rulesets.
Procedure
To package the Java rule sessions for Java SE:
Example
Here is an example that uses an Ant script:
<import file="${executionserver.home}/lib/classpath-executionserver.xml"/>
<target name="war">
<war warfile="myapplication.war" webxml="descriptors/web.xml">
<!-- Classes of your web application -->
<classes dir="classes" />
<!-- The ra.xml file configured to use the data source provider -->
<classes file="descriptors/ra.xml" />
<!-- JAR for the Rule Execution
Server in Java SE -->
<lib dir="${executionserver.home}/lib/">
<patternset refid="executionserver.j2se.classpath.patternset" />
</lib>
</war>
</target>