Hi Oleg,

The specification does not prohibit a component from saving a 
connection instance.  In fact, although the preferred resource-
usage pattern is acquire-use-release within a single business 
method, a number of notification callbacks in the EJB specification 
seem to exist primarily to enable acquiring and freeing resources 
across business method calls.  We are required to support this 
behavior to be compliant.

-Dan

On 27 Sep 00, at 18:52, Oleg Nitz wrote:

> If somebody knows for sure the answer to the following question,
> please, tell me.
> Can a bean get Connection instance during one method call and store in
> a bean instance field for use in subsequent calls of this or other
> methods? 
> I understand that in any case that would be a bad practice,
> and I know why.
> But if the specification strongly prohibits it, I think that jBoss
> could collect such garbage Connections after the method ends and
> return them to the pool.
> 
> Best regards,
>  Oleg Nitz    
> 
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to