I use the OpenSessionInViewFilter that comes with Spring in Trails. It's been working fine for me in TP4.
--Chris --- Cory Watson <[EMAIL PROTECTED]> wrote: > I can't find a definitive answer for how to utilize > Hibernate > properly in Tapestry. > > I used to use a 'Session In View' by way of a > HibernateHelper class > with that held the session in a ThreadLocal, then > utilized my > Engine's cleanupAfterRequest(). This suddenly no > longer works right > in TP4. My cleanupAfterRequest() never gets called. > > I see custom services, hivetranse, spring, and > servlet filters. I > realize that all of these probably have their place, > but I don't > understand which one is good for me. I'm a bit > leery of using Spring > for something this simple, and the hivemind ways > scare me because i > only see whispers of it and no examples that help me > understand how > to do it. > > So help a guy out. What's the best way to > accomplish the proper > session.close() and session.flush() at the end of a > request? That's > all I'm after. For now I'll use a servlet filter. > > Cory Watson > http://www.onemogin.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
