Embeddable EJB container functions

According to the Enterprise JavaBeans (EJB) 3.1 specification, all embeddable EJB containers that vendors use must at least implement the EJB Lite subset of EJB functionality. The application server also contains additional features that support the EJB Lite subset. Refer to the EJB 3.1 specification for more information.

Attention: Container-managed authentication is only supported with the default container-managed authentication alias. For data sources, the user ID and password fields of the Java EE data source resource, or the embeddable properties data source, are used as the default container-managed authentication alias.

EJB Lite includes:

  • Local (and no-interface) session beans with synchronous methods only, which include stateless, stateful, and singleton bean types.
  • Declarative and programmatic security.
  • Interceptors.
  • Support for annotations or XML deployment descriptors, the ejb-jar.xml file.
  • Java Persistence Architecture (JPA) 2.0.
Avoid trouble Avoid trouble: RESTRICTION: The embeddable container does not support the use of Contexts and Dependency Injection (CDI). gotcha

The WebSphere embeddable container provides the following additional functions:

  • Java Database Connectivity (JDBC) data source configuration, usage, and dependency injection.
  • Bean validation
    To use bean validation with the embeddable EJB container, the javax.validation classes must exist in the class path. That can be done in one of two ways:
    • Include the JPA thin client that is located in the directory ${WAS_INSTALL_ROOT}\runtimes\com.ibm.ws.jpa.thinclient_8.0.0.jar in the class path. See the topic, Running an embeddable container, and the information about JPA, for more information.
    • Include a third party bean validation provider Java archive (JAR) file in the class path of the embeddable EJB container run time.
Reference topic    

Terms and conditions for information centers | Feedback

Last updated: April 18, 2014 05:01 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-iseries&topic=rejbemconfunctions
File name: rejb_emconfunctions.html