Antonio Petrelli wrote:
Ray Madigan ha scritto:
I have a project that I need
to get a prototype out to the client FAST and I simply want to
implement a
Model layer with connection pooling. I have gone to the Spring Framework
site and I don't have the time to come up to speed on how to make this
useful. Any alternatives would be appreciated.
Use JNDI
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
Yep; to elaborate a little, the datasource support in Struts is a legacy
feature dating back to a time when servlet containers didn't have
consistent support for this. It's considered deprecated, and JNDI is the
preferred approach.
On the topic of Spring, I second the recommendation and highly recommend
investing the time to get to know it. Besides database connection
handling and pooling, you'll also get declarative transaction management
which is a huge win, and the DAO support layer will make writing your
DAOs much easier and faster. You may actually end up saving yourself
time :-)
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]