• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

common-dbcp.jar

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic