Day 11

Quiz

A1: A stateful session bean maintains a conversational state with an EJB client. This means that until the end of its life cycle, the EJB container maintains an association between a stateful bean and the EJB client that it services. A stateless session bean, on the other hand, does not maintain any state information regarding the EJB client. Hence, the EJB container maintains an instance pool of stateless session beans that can be allocated to service any EJB client.
A2: The ejbCreate() method is normally overloaded and used to initialize the session bean with different values. Because a stateless session bean does not maintain state with an EJB client, there is no need for it to have any overloaded ejbCreate() methods. The default ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.