Solved

Struts Database Connection Pooling

Posted on 2004-04-06
8
272 Views
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?

Thanks!
0
Comment
Question by:chambers777
  • 4
  • 2
8 Comments
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 10770675
0
 
LVL 92

Expert Comment

by:objects
ID: 10770679
0
 

Author Comment

by:chambers777
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.

0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 92

Expert Comment

by:objects
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.
0
 

Author Comment

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

0
 
LVL 92

Expert Comment

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exception creating bean of class 5 179
Display the newly inserted values 3 75
project group option in netbeans equivalent term in eclipse 1 49
TreeSet comparator example 7 95
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

11 Experts available now in Live!

Get 1:1 Help Now