Describe the life cycle for stateless and Stateful beans.

Describe the life cycle for Stateful beans.

- Between the client and the session bean, the state of the conversation can be maintained using a stateful session bean.

- The instance variables contain a state only during the invocation by a client method.

- It implements ‘javax.ejb.SessionBean’ interface and is deployed with the declarative attribute ‘stateful’.

- They have instance fields that can be initialized and modified by the client with each method invocation.

- The bean can use the conversational states as its business process methods.
EJB QL: What is EJB QL?
EJB QL stands for Enterprise Java Beans - Query Language. It was introduced in the EJB 2.0 specification....
EJB Context: What is an EJB Context?
EJB Context - EJBContext is an interface implemented by the container. It is a part of the bean-container contract...
EJB - EAR, JAR and WAR - What is the difference between EAR, JAR and WAR file?
EJB - EAR, JAR and WAR - Modules are packaged based on their functionality as EAR, JAR and WAR files..
Post your comment