[jboss-user] [JBoss Seam] - Re: Stored procedure call causes connection close

knuwu do-not-reply at jboss.com
Fri Sep 28 03:48:38 EDT 2007


Hi nickarls

Read chapter "11.3.2. Extended session and automatic versioning" of Seam Reference Manual Version 1.2.1 GA.

You can chance the flushMode of a session by calling:


  | Session s = (SessionImpl) entityManager.getDelegate();
  | s.setFlushMode(FlushMode.NEVER);
  | 

This prevents seam from closing the session automatically after the request finished

But you have to flush an close the session manually!


  | s.flush();
  | s.close();
  | 

Greetings Ralph

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089576#4089576

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089576



More information about the jboss-user mailing list