Announcement Announcement Module
Collapse
No announcement yet.
Hibernate OpenSessionInViewFilter + Jersey REST webservice = Error! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate OpenSessionInViewFilter + Jersey REST webservice = Error!

    Hi all,

    I have developed several JSF web applications which uses the OpenSessionInViewFilter in order to keep the Hibernate session open throughout each HTTP request.

    However, when I develop a REST webservice using Jersey, the application completely ignores the OpenSessionInViewFilter, and I start getting LazyInitializationException errors where things usually work in ordinary web applications.

    Should I use some other filter when developing webservices?

    Any ideas?

    ~Morten
Working...
X