Java EE rule session
This sample demonstrates how to run a simple stateless rule session on a Java EE application server.
Time required
10 minutes
Prerequisites
You must have Rule Execution Server installed to use this sample. The product comes with a WebSphere Liberty sample server that includes Rule Execution Server. You can use the sample on a different application server, but you must first install Rule Execution Server on the server.
Description
In this sample, you learn how to run a simple stateless rule session from a web application for
several application servers:
- WebSphere Liberty 16 (sample server)
- WebSphere® Application Server 8.5.5
- Oracle WebLogic Server 12.1.13
- Tomcat 8
If your application server supports Enterprise JavaBeans (EJB), you can run the sample on the web by using Java™ Server Pages (JSP) or a Java client.
Important: For the remote client to work, you must first deploy
the appropriate rule session beans to the target application server.
The sample includes these key features:
- Java EE rule sessions
- Stateless EJB3 sessions
- Package Enterprise JavaBeans (EJB) components and Java EE applications to use Decision Server
- Ruleset archives (.dsar files)
- A Java XOM (execution object model) for the shop model
- Execution report: IlrExecutionTrace