Stateless Session EJB: Difference between revisions
Jump to navigation
Jump to search
m (Ovidiu moved page Stateless EJB to Stateless Session EJB without leaving a redirect) |
|
(No difference)
|
Revision as of 22:57, 23 March 2017
Internal
Overview
A stateless session bean as per its name does not have any associated client state, but it may preserve its instance state.
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-via-jndi
- Stateless EJB and Servlet deployed part of the same EAR: https://github.com/NovaOrdis/playground/tree/master/jee/ejb/stateless-within-ear
Maven
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency>