File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Pleaes Help: Structs and Connection Pooling... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Pleaes Help: Structs and Connection Pooling..." Watch "Pleaes Help: Structs and Connection Pooling..." New topic

Pleaes Help: Structs and Connection Pooling...

Vee Jay

Joined: Nov 14, 2002
Posts: 1
Hi everybody,
I am seeking help from our experienced fellows and senior programmers/developers.
I am working with Struts framework, TomCat and JavaBeans and developing a website.
I wanna make my own Connection Pooling class to handel all the connections.
Actualy, I don't wanna make Connection to the DB through my each Action Classes,
which are accessing the Database.
Would you please advise me that how it is possible and how I will refere to
my Connection Pooling Class within Struts framework. And if possible just give the
hints about the structure of the Connection Pooling Class.
Your kind help will be highly appreciated...
Julian Sitkevich

Joined: Jul 23, 2001
Posts: 19
Vee Jay,
The Sun Developer website has a good article on Connection Pooling.
- jsitke
Kevin Pang
Ranch Hand

Joined: Mar 01, 2005
Posts: 38
hi,i follow the example as your mentioned from the link:

but when i compiled i got the error message,why so?

D:\JSP\exercise\WEB-INF\classes\pool>javac *.java pool.JDCConnection is not abstract and does not override a
bstract method prepareStatement(java.lang.String,java.lang.String[]) in java.sql
public class JDCConnection implements Connection {
1 error
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
Why can't you use the datasource facility provided by Struts frame work itself.

It's simple and more easy to implement if you don't go for a seperate connection pooling mechanism

Sarath Mohan
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
My suggestion is, use DBCP from Apache.
Poobhathy Kannan
Ranch Hand

Joined: May 26, 2004
Posts: 94
you can try Tomcat's connection pool as well.
Have a look on this..

Joined: Mar 26, 2005
Posts: 1
Originally posted by Poobhathy Kannan:
you can try Tomcat's connection pool as well.
Have a look on this..

Have you taken a look at iBatis. It's pretty good.

Jason Menard

Joined: Nov 09, 2000
Posts: 6450

Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we strictly enforce. Please re-read this policy, which was presented to you when you created your account, and edit your display name in order to comply. Thanks in advance and we look forward to seeing you around the Ranch.
subject: Pleaes Help: Structs and Connection Pooling...
It's not a secret anymore!