Hi Rick,
I am using a utility class as proposed in the book "Hibernate in Action". The
session and the transaction is stored in a ThreadLocal. The utility class
itself has the following methods:
- getSession / closeSession
- beginTransaction / commitTransaction / rollbackTransaction
In your action
The examples I have seen (in S1) for using hibernate with struts involve
using a plugin which creates a hibernate sessionFactory and stores it in
session context.
Each Action then retrieves the sessionFactory from the session and
passes it to a model bean.
It is my understanding that if I wer
2 matches
Mail list logo