Struts Database Connection Pooling

Posted on 2004-04-06
Last Modified: 2012-05-04
How can I implement a connection pool using struts 1.1?

I have an idea how to do it with v1.0 but it utilizes a servelet to initialize the pool and uses GenericDataSource (which is deprecated)... there must be a better way, right?

Question by:chambers777
  • 4
  • 2
LVL 92

Accepted Solution

objects earned 125 total points
ID: 10770675
LVL 92

Expert Comment

ID: 10770679

Author Comment

ID: 10777148
I'm sorry, but this really isn't helping me much....

Is it best practice to have the action servlet actually make the connection or to delegate that to the business objects. I would think the former, but the second link describes how to make the connection within your action class... I'm confused.

Highfive Gives IT Their Time Back


LVL 92

Expert Comment

ID: 10778842

Thats a different question :)
If you're using a connection poll then it doesn't matter as much as the actual connection is really being made by the pool.

Author Comment

ID: 10779217
Ok... so I don't want to make a pool that is dependant on Tomcat....

LVL 92

Expert Comment

ID: 10779271
are you intending to implement your own connection pool?

Featured Post

Free Trending Threat Insights Every Day


Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
String format issue 13 88
bean mapper frameworks 5 56
console vs log file 16 76
AlarmClock Challenge 35 145


Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now