Local and remote EJB bindings
Decision Server supports dependency injection as well as local and remote EJB3 bindings for the supported application servers.
Dependency injection
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.
EJB3 bindings
The following table shows the EJB3 bindings API for the supported application servers:
| Application server | Rule session type | Local bindings | Remote bindings |
|---|---|---|---|
| WebSphere® 8.5 and 8.5.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 Server 10 and 12 | 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 6.1 and 6.3 EAP | Stateless sessions |
|
|
| Stateful sessions |
|
|