Hi all,
I am new to Enterprise
java beans. I am reading "Enterprise JavaBeans 3.1" Oreilly book to learn. I am stuck at a place where I am not able to understand what the author mean to say regarding Stateless and Stateful session beans. The statement is
Stateless session beans
"Once an instance is in the Method-Ready Pool, it is ready to service client requests. When a client invokes a business method on an
EJB object, the method call is delegated to any available instance in the Method-Ready Pool. While the instance is executing the request, it is unavailable for use by other EJB objects. Once the instance has finished, it is immediately available to any EJB object that needs it. Stateless session instances are dedicated to an EJB object only for the duration of a single method call."
Stateful session beans
"Each SFSB is dedicated to one client for the life of the bean instance; it acts on behalf of that client as its agent. Stateful session beans are not swapped among EJB objects, nor are they kept in an instance pool like their stateless session counterparts. Once a stateful session bean is instantiated and assigned to an EJB object, it is dedicated to that EJB object for its entire lifecycle."
I am not able to understand
What the term EJB object mean?
What is difference between EJB object and Stateless session instance or Stateful session instance?
Thanks
Sumanth