Solved

Struts Database Connection Pooling

Posted on 2004-04-06
8
273 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
parse example 13 95
AlarmClock Challenge 35 155
Use tracing facilities in your browser steps 2 122
HTTPSessionBindingListernter not configured in deployment descriptor 2 65
ConnectWise and their customers need to ensure critical alerts automatically reach the right person at the right time. MSP superheros efficiently respond to these alerts key is providing automatic, intelligent alerting that generates a complete audi…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

840 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