----- Original Message ----- From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Thursday, September 18, 2008 5:26 AM
Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing....


From: sinoea kaabi [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active
connections keepincreasing....

I could accept the fact that we should create new objects of Dao's,
but for getting a datasource or connection it should make sense
to have a utility class with static methods.

Absolutely - Johnny K's suggestion of doing a new every time is utter nonsense.

---------------

I eat humble pie.... you right... completely off track...

One of the problems is that I'm not thinking framework... and sinoea is in one. Also not having used DBCP I'm at a disadvantage here... maybe should just shut the hell up...

As I see it... sinoea is creating a singleton... to hold that data source... he has to because the control servlet is inside a framework, so he is "holding" a pool from the fridge of the framework...

So... struts people... just help this guy...
Does struts have a better built in way to manage the pool... so he can just get the reference to it? If not... what is standard practice for using a "third party" pool in the struts framework...

He's into holding stuff in statics... because he is trying to keep a single instance of the pool available to all the rest of his action objects...

Thats what he's asking... what is the right way to do that in struts.... like maybe its standard practice to hold DHCP in a servlet context attribute... or maybe struts has a really clever way of doing that for you... thats the question?

... my suggestions do suck... what is the right way in struts to hold that 3rd party pool dish out references where they needed ?

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to