Struts datasource usage is deprecated, they encourage users not to try their 
datasource configuration in  the xml.
Instead I was advised to manually configure JNDI connection pooling with Struts.



> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections  
> keepincreasing....
> Date: Thu, 18 Sep 2008 12:04:11 +0200
> 
> 
> ----- 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]
> 

_________________________________________________________________
Make a mini you and download it into Windows Live Messenger
http://clk.atdmt.com/UKM/go/111354029/direct/01/

Reply via email to