Q&A

Q1:What are the classes and interfaces that make a stateful session bean?
A1: A stateful session bean is an EJB component, which extends two interfaces: a home interface (EJBHome) and a remote interface (EJBObject), and a bean class that implements the SessionBean interface.
Q2:How can the EJB container recognize a bean as being a stateful session bean?
A2: The EJB container distinguishes all types of beans from the standard deployment descriptor ejb-jar.xml. The tag <session> and the subtag <session-type> are used to set the stateful session bean in the deployment descriptor.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.190.211