Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

common-dbcp.jar

 
vin Hari
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vin Hari
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic