hi stephan, > -----Ursprungliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Auftrag > von Stephan Coboos > Gesendet: Dienstag, 10. Februar 2004 12:22 > An: [EMAIL PROTECTED] > Betreff: Re: AW: How to initialize a component coming from the pool? > > > 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.
and why isn't that possible? AFAIK implementing Poolable doesn't prevent implementing Disposable. if you implement Disposable, the component's dispose() method should get called when the pool and therefore the pooled/recycled component itself gets disposed. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
