Stateless Session EJB
Jump to navigation
Jump to search
Internal
Overview
A stateless session bean as per its name does not have any associated client state, but it may preserve its instance state. For more EJB concepts see
Example
- Stateless EJB and Servlet deployed as separate modules, EJB is looked up in JNDI: https://github.com/NovaOrdis/playground/tree/master/jee/ejb/stateless-and-servlet-different-deployment-units-same-jboss-instance
- Stateless EJB and Servlet deployed part of the same EAR, annotations: https://github.com/NovaOrdis/playground/tree/master/jee/ejb/stateless-and-servlet-within-ear-ejb-annotation
- Stateless EJB and Servlet deployed part of the same EAR, JNDI lookup: https://github.com/NovaOrdis/playground/tree/master/jee/ejb/stateless-and-servlet-within-ear-jndi
Maven
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency>