Michael, If I commented out the filter, after getting the object, the session is closed and the next line of code in the action causes a lazyInstantiation error. I just can't believe it closed after one usage even within the same action which is still using the same manager.
Cheers, Doug Michael Courcy <[EMAIL PROTECTED]> wrote: Open session in view is meant to be read-only. When the call to the manager return (inside the controller) the transaction is commited and the transactionManager change its flushMode temporaly to reset it just after to never (Aka read only), thus when the control is passed to rendering the transaction is back in read only mode. This is taken from the javadoc of OSVF : * NOTE: This filter will by default not flush the Hibernate Session, * with the flush mode set to FlushMode.NEVER. It assumes to be used * in combination with service layer transactions that care for the flushing: The * active transaction manager will temporarily change the flush mode to * FlushMode.AUTO during a read-write transaction, with the flush * mode reset to FlushMode.NEVER at the end of each transaction. * If you intend to use this filter without transactions, consider changing * the default flush mode (through the "flushMode" property). Cheers Doug Pham a écrit : > You may have ran across this along the way. Each time I used the DAO > to make a call, the session seems to get closed. If I used the > OpenViewFilter, the session is open, but it's in a READ-ONLY mode. I > know I am not posting any code here, but has anyone ran across this > and have a correct way of setting this? > > Thanks, > Doug > > ------------------------------------------------------------------------ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > -- Michael Courcy http://courcy.blogspot.com http://courcy-en.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.