Kevin,

Some database software (such as Hibernate[.org]) can automatically
initialize a pool of database connections for you.  I use Hibernate (with a
Struts plugIn to set it up), one of the various pooling packages it
supports, and am trying to learn how to use some of the many data caching
packages available within it.   The database pooling includes (at least)
C3P0 (http://c3p0.sourceforge.net), DBCP
(http://jakarta.apache.org/commons/dbcp), and Proxool
(http://proxool.sourceforge.net).  For caces, it supports JCS, EhCache,
OSCache, TreeCache (JBoss), and probably more I can't think of right now.
Of course, with their base classes for both so you could always create your
own interface should your favorite pooling or caching software not be found
on their site or as a usable class file somewhere inside the great, old
Internet.

Regards,
David

-----Original Message-----
From: Kevin Bridges [mailto:[EMAIL PROTECTED]
Sent: Friday, October 29, 2004 7:29 PM
To: [EMAIL PROTECTED]
Subject: database pooling for struts


Hi.  I am completely new at struts and fairly new to java ... so if
these questions are blatantly ignorant please be kind. If this email
is out of scope for this list, please notify me off-list.

I am interested in setting up database pooling for struts and have
been following a tutorial located at
http://www.arc-mind.com/chapters/strutsTut.pdf (p.27), which outlines
a process for doing so.

The tutorial makes reference to a struts-legacy.jar that ships with
Struts 1.1 along with commons-dbcp.jar and commons-pool.jar.  The
tutorial is completely written for Struts 1.1

I'm using Struts 1.2.4 on Tomcat 4.1 ... Should I continue to follow
the tutorials 1.1 path, or is there a better approach I can utilize
for Struts 1.2.4?  Any pointers to tutorials or additional reference
material is greatly appreciated.

Thanks.
Kevin Bridges

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to