On Wed, 19 Jan 2005 15:52:20 +0530, Kalluru Uma. Maheswar <[EMAIL PROTECTED]> wrote:
> And in the classes where I need database connection, I am saying > > DBPool dbPool = new DBPool(); > > dbPool.getDataSource(); > > By doing this, my application is getting slower. Initially I configured > db connection in the struts-config.xml file and it was working fast at > that time. It seems you misunderstood the point of connection pooling. If you are creating a new instance of connection pool before working with database, there's obviously nothing pooled at all. You should better use the datasource defined in struts-config.xml or in your environment settings. Pavel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]