Thanks Personally, I do wanna use JNDI. But the project I'm going to do is based on struts 1.1 and using <data-source> to connect to db. So I have to learn on these things first and learn the advanced things later after work :-)
Talos ----- Original Message ----- From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Tuesday, April 01, 2008 3:54 PM Subject: Re: Help on <data-source> 2008/4/1, Chen Chunwei <[EMAIL PROTECTED]>: > > By the way, can I say that, if I use <data-source> in my struts > application, then the struts servlet manages the connection? That is, when > the application is deployed, the struts servlet will automaticly create > connections of numbers specified by "minCount". And the application just > fetch the connection created to use? It's not the servlet that manages the connections, but the data source, that acts also as a connection pool. For more information, see: http://commons.apache.org/dbcp/ This data source is created by the servlet. The reason why it is deprecated is that it mixes the Controller and the Model layers of the MVC model. Antonio