Jazz, here's a lightweight package that so far has met all of my needs:
http://butterfly.jenkov.com/ ...
I'll be sure to take a look.
Thanks for the response.
Jazz
-
To unsubscribe, e-mail:
Does anyone know of any techniques that would allow a Database Access Object
(DAO) to be used from the various actions that make up a Struts application?
I have a DAO which, when instantiated, acquires a data source from the
servlet container (in this case, Apache Tomcat). Thereafter, I can
We use Spring (and Spring-LDAP) for that layer. It works great, manages
all
our DAO's and their resources, and then injects them into the Actions as
needed.
Chris,
At the moment, i'm trying to reaquaint myself with the ins and out of Struts
(I haven't touched it for several years), so I
So want your DAO's to be singletons?
You would have to make them Thread-safe (or synchronize and kill
performance), beware that database connections are not thread-safe.
Please note that i'm using using the database connection pooling
facilities provided by the Servlet Container (Apache
I'll echo the Spring suggestion. It simplifies Action-level programming
by
quite a bit.
On the flip side, it requires some extra XML configuration, but IMO it's a
good tradeoff.
Spring seems to be quite popular here. I'm somewhat reluctant because
Spring provides a lot more than just
5 matches
Mail list logo