Niclas Hedhman wrote:

On Tuesday 10 February 2004 17:21, Stephan Coboos wrote:



Please have a look into the code above.


Ok, clearer!


In each method, why not just do,

if( this.con == null )
 this.con = this.ds.getConnection();

and set it back to null, when you release the component?




Hmm, yes this should work. But I think it is not the best way. In my opinion the best way would be to have a method which does this for me by the serviceManager. What do you think?

What about start() and stop()?

I hope I had described my problem correctly? I it is not so, please ask me.
I thank you very much for your help.



I think I understand what you are asking; "What is the Design Pattern for implementing a Component Pool?"


I am going to write something on the Wiki about it... I'll post the URL when done.


Yes, it would be very intersting!

Regards
Stephan



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



Reply via email to