If you google: 'hibernate open session in view' you should find plenty
of examples. Especially on hibernate.org
On 2/13/09, Lukasz Lenart wrote:
> 2009/2/13 Security Management :
>> Thanks, the invocation.invoke() will execute all the following
>> interceptors, and render the view, then I can c
2009/2/13 Security Management :
> Thanks, the invocation.invoke() will execute all the following interceptors,
> and render the view, then I can close the transaction and session?
Yes, but remember about correct order of your custom interceptor stack.
Regards
--
Lukasz
http://www.lenart.org.pl
List
Subject: Re: Interceptor that runs after a view is rendered
2009/2/13 Security Management :
> I'm using Hibernate, and am going to create an interceptor to run before the
> Action to open a session and start a transaction.
>
> After the view is rendered, I want to commi
2009/2/13 Security Management :
> I'm using Hibernate, and am going to create an interceptor to run before the
> Action to open a session and start a transaction.
>
> After the view is rendered, I want to commit the transaction.
>
> This will result in 1 transaction per request, how can I do the se
4 matches
Mail list logo