Enterprise Beans (EJB)
Enterprise JavaBeans/Jakarta Enterprise Beans (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:
| Feature | Support | Enterprise Java 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 |
| enterpriseBeansLite-4.0 | Enables support for Jakarta Enterprise Beans that are written to the Enterprise Beans Lite subset of the Jakarta Enterprise Beans 4.0 specification. | Jakarta EE 9 |
| enterpriseBeansHome-4.0 | Enables the use of home interfaces in Jakarta Enterprise Beans. | Jakarta EE 9 |
| enterpriseBeansRemote-4.0 | Enables the use of remote interfaces in Jakarta Enterprise Beans. | Jakarta EE 9 |
| enterpriseBeansPersistentTimer-4.0 | Enables the use of persistent timers in Jakarta Enterprise Beans. | Jakarta EE 9 |
| enterpriseBeans-4.0 | Enables support for Enterprise Beans that are written to the Jakarta Enterprise Beans 4.0 specification. | Jakarta EE 9 |
| mdb-4.0 | Enables the use of Message-Driven Jakarta Enterprise Beans that are written to the Jakarta Enterprise Beans 4.0 specification. MDBs allow asynchronous processing of messages within a Jakarta EE component. | Jakarta EE 9 |
Procedure
Enable the feature in the server.xml file. For example:
<featureManager>
<feature>ejb-3.2</feature>
</featureManager>
Methods within EJB beans can be defined as entry points to CICS programs. For more information, see Preparing a Enterprise Java application to be called by a CICS program.
For more information, see:
- Developing EJB 3.x applications for information about developing EJB applications by using WebSphere® Developer Tools.
- Developing Enterprise bean (EJB) persistent timer applications for information about developing EJB persistent timer applications.
- Using enterprise JavaBeans applications that call local EJB components in another application for information on using enterprise JavaBeans applications that call local EJB components in another application.