Develop session beans
Subtopics
- Configure EJB 3.1 session bean methods to be asynchronous
Configure EJB 3.1 session bean methods to run asynchronously. We can make some or all of our bean methods asynchronous.- Develop stateful session beans
Create a bean implementation class for a stateful session bean as introduced in the Enterprise JavaBeans™ (EJB) 1.0 specification and significantly simplified by the EJB 3.0 specification. A stateful bean is a type of session bean intended for use by a single client during its lifetime and maintains a conversational state with the client that is calling it.- Develop a session bean to have a No-Interface Local view
We can specify that a session bean have a No-Interface view.- Develop singleton session beans
Create a bean implementation class for a singleton session bean, introduced by the EJB 3.1 specification. The EJB container initializes only one instance of a singleton session bean, and that instance is shared by all clients. Because a single instance is shared by all clients, singleton session beans have special life cycle and concurrency semantics.- Configure EJB 3.1 session bean methods to be asynchronous
Configure EJB 3.1 session bean methods to run asynchronously. We can make some or all of our bean methods asynchronous.- Develop stateful session beans
Create a bean implementation class for a stateful session bean as introduced in the Enterprise JavaBeans™ (EJB) 1.0 specification and significantly simplified by the EJB 3.0 specification. A stateful bean is a type of session bean intended for use by a single client during its lifetime and maintains a conversational state with the client that is calling it.- Develop a session bean to have a No-Interface Local view
We can specify that a session bean have a No-Interface view.- Develop singleton session beans
Create a bean implementation class for a singleton session bean, introduced by the EJB 3.1 specification. The EJB container initializes only one instance of a singleton session bean, and that instance is shared by all clients. Because a single instance is shared by all clients, singleton session beans have special life cycle and concurrency semantics.