| Author |
Pleaes Help: Structs and Connection Pooling...
|
Vee Jay
Greenhorn
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... VeeJay... veejay313@yahoo.com
|
 |
Julian Sitkevich
Greenhorn
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: http://java.sun.com/developer/onlineTraining/Programming/JDCBook/conpool.html#drive but when i compiled i got the error message,why so? D:\JSP\exercise\WEB-INF\classes\pool>javac *.java JDCConnection.java:7: pool.JDCConnection is not abstract and does not override a bstract method prepareStatement(java.lang.String,java.lang.String[]) in java.sql .Connection 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..http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
|
http://learnertobeginner.blogspot.com/
|
 |
SeaGizmo
Greenhorn
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..http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
Have you taken a look at iBatis. It's pretty good. SG
|
 |
Jason Menard
Sheriff
Joined: Nov 09, 2000
Posts: 6450
|
|
"SeaGizmo", 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.
|
Jason's Blog
|
 |
 |
|
|
subject: Pleaes Help: Structs and Connection Pooling...
|
|
|