Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Struts Database Connection Pooling

Posted on 2004-04-06
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 92

Accepted Solution

objects earned 500 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.

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

The online market is growing at an unprecedented rate and retail eCommerce sales are expected to reach $4 trillion by 2020. Yet, the profit is not just there for the taking because you have to set yourself apart from the competition.
Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA:…

715 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