Steve Roth wrote:
>
> I'm trying to track down which EJB methods are called during the transition
> in an Entity bean from Pooled to Ready state.
>
> In particular, for the following circumstance:
>
> - Client invokes findBySomething, which returns a Vector.  (EJB in pooled
> state)
> - Client selects a handle in the Vector
> - Client calls a business method on the handle.  (EJB in ready state)
>
> According to the EJB 1.1 spec, page 102, the only transitions from pooled to
> ready are via ejbActivate and ejbCreate.
>
> In this case, however, the bean has never been passivated and is not being
> created.
>
> Specifically, I'm wondering if ejbLoad is called during this sequence.  In
> the container I'm playing with, ejbActivate does not appear to be called.
>
> Any thoughts?

The container should call either ejbActivate or ejbCreate before a
business method is called on a new instance.  If some earlier operation
resulted in the correct bean being in the ready state, ejbActivate
might not be called between the find and the business method call.

In most cases, I would expect ejbLoad to be called also.

--
Bill Claypool   |       Seeing is believing in the things you see.
[EMAIL PROTECTED]   |         Loving is believing in the ones you love.
1 916 928 6259  |                                       -Margie Adam

===========================================================================
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