This content has been marked as final.
Show 3 replies
-
1. Re: HTTP Session Listener
soares Mar 19, 2010 5:44 AM (in response to soares)I forgot to say: the injected EntityManager is always null. I think it happens because the Seam session is already dead... But I'd like to find a good way to update the database on session expires. Thanks!
-
2. Re: HTTP Session Listener
kirpi4ik Mar 19, 2010 7:38 AM (in response to soares)Hi,
You can create a Session scoped component and add the method annotated with @Destroy. In this method you can release your session-related objects(or whatever you need to do). This method will be invoked before your session is destroyed.
with best regards,
Dima
-
3. Re: HTTP Session Listener
soares Mar 22, 2010 12:21 AM (in response to soares)Yeah, it should really works! thanks a lot Dima!