How does an entity bean move from the Pooled to the Ready state in the case
of an ejbFindXXX ?

According to the 1.1 spec (section 9.1.4), an entity bean may move from the
Pooled to the Ready state in only 2 ways:

1. ejbCreate(args) , ejbPostCreate(args)
2. ejbActivate()

Since calling ejbCreate() on a bean you just found would result in an
exception, ejbActivate() seems like the only possibility.

However, accorcding to Richard Monson-Haefel "Activation presumes that the
bean has previously been passivated." (Enterprise JavaBeans p. 169)

The beans resulting from a find have not necessarily ever been passivated,
and my testing shows that ejbActivate() is never called by the container.
(JOnAS in this case)

What's going on here?  Thanks

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to