Q&A

Q1:Can a stateless session bean maintain state?
A1: Yes. A stateless session beans can contain non-client specific state across client-invoked methods. For example, states such as socket connection, database connections, reference to an EJBObject, and so on can be maintained. However, they cannot have state specific to any client across client-invoked methods.
Q2:In which tier should client state be maintained?
A2: In a typical transactional J2EE application, client state should be maintained in the EJB tier. A stateful session bean is used to manage workflow and maintain state during client interactions.
Q3:How does the container recognize the session bean type?
A3: The EJB container recognizes the session bean type from the bean's deployment descriptor(ejb-jar.xml).
..................Content has been hidden....................

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