Struts Database Connection Pooling

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!
chambers777Asked:
Who is Participating?
 
chambers777Author Commented:
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
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
objectsCommented:
> 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
 
chambers777Author Commented:
Ok... so I don't want to make a pool that is dependant on Tomcat....

0
 
objectsCommented:
are you intending to implement your own connection pool?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.