Announcement Announcement Module
Collapse
No announcement yet.
OpenSessionInViewFilter and multiple sessionfactories? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • OpenSessionInViewFilter and multiple sessionfactories?

    Hi

    My application has to acces two databases (one of them for read operations only). I want to use two sessionfactories for this with different database schemas specified in the hibernate.default_schema property.

    I am using struts, spring and hibernate. For lazy loading to work from both databases I want to use the OpenSessionInViewFilter. How do I configure this for multiple sessionfactories?

    Thanks!

  • #2
    The easiest solution would be to use one OSIV per session factory (exactly like you would for only one).

    Comment

    Working...
    X