Marco Rolappe wrote:

hi stephan,

I don't know exactly your use case, but...

why don't you just keep the datasource, I assume it won't change anyway. so
just close the connection in recycle()


Yes, this is what I'am doing.

and release the data source in
dispose() (i.e. implement Disposable).


It's not possible because the component itself should be poolable.

in your processSomethingXY()s get the
connection by using a private method, which stores/retrives the current
connection; when the current connection is null, get it from the data
source, otherwise return it.



Yes, thats what I want to do now.


Thank you.

Regards
Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to