Announcement Announcement Module
Collapse
No announcement yet.
confusion when reading appfuse:why openSessionInView also used? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • confusion when reading appfuse:why openSessionInView also used?

    In appfuse-1.8.2,I get the web source by building the package-web target.

    there is transaction handling at service tier(defined in spring configuration files)
    also in web.xml,
    <filter>
    <filter-name>hibernateFilter</filter-name>
    <filter-class>org.springframework.orm.hibernate3.support.O penSessionInViewFilter</filter-class>
    </filter>

    <filter-mapping>
    <filter-name>hibernateFilter</filter-name>
    <url-pattern>*.html</url-pattern>
    </filter-mapping>

    openSessionInView is also used.

    but why?doesn't openSessionInViewFilter add a transaction to each request? or is it a nested transaction or something else?
Working...
X