*
The moose likes Struts and the fly likes common-dbcp.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "common-dbcp.jar" Watch "common-dbcp.jar" New topic
Author

common-dbcp.jar

vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello all,
Iam running one struts application through database throgh eclipse which mainly requires common-dbcp.jar file which iam not getting after searching for a long time please if any one dowloaded that please send me that .jar along with struts1.1 please consider my request.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
http://jakarta.apache.org/site/downloads/downloads_commons-dbcp.cgi

Why do you want to make a connection pool from within the applpication.Why do not you configure it with servlet container and then use this within your application.


Rahul Bhattacharjee
LinkedIn - Blog
vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello Rahul,
Thank You for reply please can you send me any example related to that because iam configuring through struts-config.xml but it is showing lots of mistakes through driverconnection so please tell me whether to config through struts-config.xml or directly using servlet in which we can write class.forName.... which will be a better option please consider this query.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
This becomes a struts specific question if you want to do using struts-config.xml.

But I would go with configuring the datasource at the server level and using that from my application.Let the server manage the pool for me.

Using direct jdbc code from within the servlet is recommendable.
vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello Rahul

Thank you for reply that was a nice answer can you please send me one example rahul so that directly i can undersand.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Configuration of Datasource is vendor specific.However if you are using Tomcat 5.5 then you might want to see this link.You will find there codes as how to use the datasource from the servlet.In case you are using some other container then refer the vendor documentation.
vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello all,

Iam trying to download mysql-connector from mysql.com but it is giving only a corrupted zip file how to overcome that problem because for struts database connection mainly requires that connector please anyone help me.
 
Don't get me started about those stupid light bulbs.
 
subject: common-dbcp.jar