EJB Stateful Session bean: What is a Stateful Session bean?

What is a Stateful Session Bean?

- 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 stateless session bean: What is stateless session bean?
EJB stateless session bean - A stateless session bean is an enterprise bean that does not maintain conversational state specific to a client session..
EJB-methods-Entity-Bean.aspx
EJB Create Methods - The create() method is used to insert data into the database by creating a new instance of CMP entity bean...
EJB session bean: What happens if remove() is never invoked on a session bean?
EJB session bean - the bean might be kept in cache until the session is timed out after which it is removed or..
Post your comment