Hi,
Came across this question on
SCEA yahoogroups. I thought the correct answers would be B and D. But it seems answer is D only. Any clarifications??? or Am i missing something here.
Thanks,
206When a client calls the create() on a Stateless Session Bean's Remote Interface,
AThe newInstance() method is invoked by the container
BThe ejbCreate() method is called by the container
CPassivated instance is activated and attached to the
EJB Object
DThe Container takes an instance from the Method Ready Pool and attaches it to the EJB Object.
Choice D is correct.
With Stateless Session Beans, a new instance is not created each time a client request comes in. Instead, the container manages a pool of bean instances, and when a client requests the service (via a create method), an instance from the pool is assigned to service the request. Hence choice D is correct.
The newInstance() method and the ejbCreate() method are invoked by the container to set up the instances in the bean pool and are not called with each create() method called by the client. Hence choices A and B are incorrect.
Choice C is incorrect because Stateless Session Beans are not passivated or activated.