Hello Friends,
According to the entity bean life cycle , After a finder method executes on the home object of an entity bean, the bean will still be in the pool. But to call a business method on the EJBObject returned by the finder method, the bean has to be in the method ready state. So for the transition to take place from the pool state to method ready state, ejbActivate has to be called by the container before executing the business method.
But with the AccountBean example given in the Book “Mastering
EJB “ by Ed Roman, which I tried out on Weblogic Server 6.1, the ejbActivate method was not called when a create call had been previously executed before the finder method call and subsequently a business method on the EJBObject returned by the finder method.
The ejbActivate was called only when the calls were finder methods and a business method.
So how did the transition take place? Was the finder method executed in the method ready state? Does my previous statement make any sense? Please guys make me clear.Am i missing something here ?