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

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

LVL 92

Expert Comment

ID: 10778842
> Is it best practice to have the action servlet actually make the connection or to delegate that to the business objects.

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

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

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
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 members asked questions and received personalized solutions in the past 7 days.

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