Write code for the bean classes of Stateful and Stateless Session Beans.

[Note]

Session Bean Class

The following are the requirements for the session bean class:

Optionally:

A STATELESS session bean MUST be annotated with the Stateless annotation or denoted in the deployment descriptor as a stateless session bean. The bean class NEED NOT implement the javax.ejb.SessionBean interface.

A STATEFUL session bean MUST be annotated with the Stateful annotation or denoted in the deployment descriptor as a stateful session bean. The bean class NEED NOT implement the javax.ejb.SessionBean interface or the java.io.Serializable interface (the container must be able to handle the passivation of the bean instance even if the bean class does not implement the Serializable interface).

A STATEFUL session bean MAY implement the SessionSynchronization interface.

Professional hosting     Belorussian informational portal         Free SCWCD 1.4 Study Guide     Free SCDJWS 1.4 Study Guide     SCDJWS 1.4 Quiz     Free IBM Certified Associate Developer Study Guide     IBM Test 000-287. Enterprise Application Development with IBM WebSphere Studio, V5.0 Study Guide     Free Mock Exam Engine