Enterprise JavaBeans (EJB)

Enterprise JavaBeans (EJB) is a Java API, and a subset of the Java EE specification. EJBs contain the business logic of an application, and are fully supported by CICS Liberty, including the Lite subset.

The Liberty features that provide the support for EJBs are:

Table 1. Liberty features that provide support
Feature Support Java EE version
ejbLite-3.1 This feature enables the Lite subset of the EJB technology as defined in the EJB specification. This subset includes support for local session beans that are written to the EJB 3.x APIs. Java EE 6
mdb-3.1 This feature enables the message-driven bean subset of the EJB technology, which is similar to the support that the ejbLite feature enables for session beans. Java EE 6
ejbLite-3.2 This feature enables the Lite subset of the EJB technology as defined in the EJB specification. This subset includes support for local session beans that are written to the EJB 3.x APIs, non-persistent EJB timers, and asynchronous local interface methods. Java EE 7
mdb-3.2 This feature enables the message-driven bean subset of the EJB technology, which is similar to the support that the ejbLite feature enables for session beans. Java EE 7
ejbHome-3.2 Enables support of the EJB 2.x APIs, specifically, support for the javax.ejb.EJBLocalHome interface. The javax.ejb.EJBHome interface is also supported when combined with the ejbRemote feature. Java EE 7
ejbRemote-3.2 Enables support for remote EJB interfaces Java EE 7
ejbPersistentTimers-3.2 Enables support for persistent EJB timers. Java EE 7
ejb-3.2 Enables full EJB 3.2 support. Covers all EJB 3.2 technology, including remote EJB technology. Java EE 7

Procedure

Enable the feature in the server.xml file. For example:

<featureManager>        
    <feature>ejb-3.2</feature>   
</featureManager>
For more information, see: