Decision Server supports dependency injection as well as local and remote EJB3 bindings for the supported application servers.
Java™ EE containers provide dependency injection. Dependency injection means that you do not have to perform JNDI lookups yourself to get a reference to an EJB from a servlet or from another EJB. You can use the @EJB annotation inside your Java EE-managed components (servlet or EJB) to obtain the references to the bean. See the Java EE specification for details. Because no deployment descriptor is provided in the ejb-jar file for EJB3 rule sessions, default JNDI bindings are used. These bindings are application-server specific.
The following table shows the EJB3 bindings API for the supported application servers:
| Application server | Rule session type | Local bindings | Remote bindings |
|---|---|---|---|
| WebSphere® V8.0 and 8.5 | Stateless sessions | ejblocal:ilog.rules.res.session.ejb3.IlrStatelessSessionLocal | ilog.rules.res.session.impl.ejb3.IlrStatelessSessionRemote |
| Stateful sessions | ejblocal:ilog.rules.res.session.ejb3.IlrStatefulSessionLocal | ilog.rules.res.session.ejb3.IlrStatefulSessionRemote | |
| WebLogic 10.x | Stateless sessions | java:comp/env/IlrStatelessSessionEJB3 | IlrStatelessSessionEJB3#ilog.rules.res.session.impl.ejb3.IlrStatelessSessionRemote |
| Stateful sessions | java:comp/env/IlrStatefulSessionEJB3 | IlrStatefulSessionEJB3#ilog.rules.res.session.impl.ejb3.IlrStatefulSessionRemote | |
| JBoss 5.0 | Stateless sessions |
|
|
| Stateful sessions |
|
|
|
For a deployment inside an EAR file, the name of the EAR file is appended before the JNDI name. For example: MY-EAR/IlrStatelessSessionEJB3/local |
|||
| Stateless sessions |
|
|
|
| Stateful sessions |
|
|
|