I crossed myself at Javaranch . I did my thorough check by doing a google search. I did not find the answer.
We have a REST service database web application for which the backend is implemented using Groovy and Grails (1.3.7 with Groovy 1.7.x). I understand how Open Session In View works in general for Hibernate, and when configuring Hibernate with Spring, we can specify for which set of URLs OSIV should work in the filter configuration.
The problem is that I cannot find how to exclude a set of URLs from the scope of the OSIV filter (for example, matching * .js, * .gif, etc.). I found from the Hibernate magazine that even to request a Javascript Open Session In View file, it starts and opens a session and closes it.
Thanks in advance.
source
share