Jan, The tapestry-hibernate module does exactly that:
http://tapestry.apache.org/tapestry5/tapestry-hibernate/index.html Even if you don't use that module (or even hibernate), the source will show you everything you need. chris Jan Vissers wrote: > Hi, > > We're about to use JPA in our T5 application. Does someone have some good > pointers for us how to introduce 'session-per-request' functionality for > that combo. Basically what I want is to introduce a fresh EntityManager at > the start of T5's request and commit (or rollback) at the end of it. > Obviously from within our pages/services we need to get access to the > EntityManager instance as well. > > Thx, > -J. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]