open-session-in-view

OSIV pattern - pro's and con's ? general question about OSIV and views

I'm in the planning stages of a web site project and deciding on whether to go for OSIV and not use dao(eao)/dto (used dao/dto for an existing project) im wondering if, with OSIV, the entities should be accessible in the view (for example, with struts2, i could push the entities on to the valuestack and use OGNL in the view templates) ...

Spring.NET + NHibernate - Multiple (Distinct) Databases with OpenSessionInView

In my web application, I have 2 totally different databases - one that's being used mostly by a CMS from which we'd like to get page information on non CMS pages on the same website, & one that contains totally different data. Is it possible to use Spring.NET's Open Session In View module with multiple session factories for both of thos...

PersistenceManager and Open Session In View

Hi, my java skills are a bit rusty and I'm wondering how I can implement Open Session In View pattern for the PersistenceManager called from a servlet in a google app engine environment. I have some singleton which handles the PersistenceManagerFactory, but how can I get a "new" PersistenceManager at each servlet call ? I want my bus...

hibernate 'open session in view' and asynchronous tasks

I'm utilizing the Open Session in View pattern for my jsf/icesfaces application. As usual a servlet filter is opening and closing all the hibernate sessions at the beginning and the end of a "web server thread". My problem now is that I'm using asynchronous tasks for eg. loading big lists of objects from the database. Therefore I'm crea...

Hibernate Session scope in JTA transactions vs Open-Session-In-View

Hi, Is it correct to say that using JTA Transactions with Hibernate contrasts using the Open-Session-In-View with regards to the session scope? From what I've been able to gather the Session scope in the JTA Transactions is a transaction (mainly based on this link) while in the Open-Session-In-View pattern the session's scope is the requ...