uCosminexus Application Server, EJB Container Functionality Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
4.2.20 Precautions when using EJB 3.1
This subsection describes the precautions to be taken when using EJB 3.1.
- EJB 3.1 does not support an EJB container that can be embedded
- EJB 3.1 does not support the @StatefulTimeout and @AroundTimeout annotations. You cannot use the @AccessTimeout annotation in a Stateful Session Bean.
- EJB 3.1 does not support the EJB packaging to WAR. EJB 3.1 does not support storing of class files, granted with an EJB component definition annotation (@Stateless/@Stateful/@Singleton), to the JAR file under WEB-INF/classes or WEB-INF/lib of WAR, and also the placing of WEB-INF/ejb-jar.xml. The operations of the applications having such structure are not guaranteed.
- You cannot use the Web service client view in a Singleton Session Bean.
- When using functionalities added in EJB 3.1, the functionalities cannot be used in combination with the following functionalities:
- The EJB container does not support the getContextData method of the javax.ejb.EJBContext interface added in EJB 3.1.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.