Announcement Announcement Module
Collapse
No announcement yet.
threadLocal in HttpSessionListener.sessionDestroyed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • threadLocal in HttpSessionListener.sessionDestroyed

    Hello,
    I'm trying to setup the OpenSessionInViewInterceptor using hibernate, velocity and springs Transactional annotations. I have it working with the SimpleUrlHandlerMapping but I also need to open a hibernate session in HttpSessionListener.sessionDestroyed and close it at the end of the method. Do I get the threadLocal at the end of the sessionDestroyed method and close it manually? Do I manually create a TransactionSychronizationManger to wrap my method calls? Could someone please give me an example or point me in the right direction of how to close the session?

    Thanks in advance,
    Michael
Working...
X