[jboss-user] [JBoss Seam] - Re: Form submit trigger many updates

hstang do-not-reply at jboss.com
Wed Jan 3 19:48:03 EST 2007


Using a TransactionalSeamPhaseListener:
A non JSF request (a redirect for example)--transaction begins just before restore_view(rv) phase, and the same transaction commits just after rv. A second transaction begins before render response phase (rr), and commits after it.

For a JSF request(e.g. submit)--tx begins just before rv phase, and commits just after invoke application phase (after completion of your action method).  Similarly to non jsf request, a second transaction begins before rr phase, and commits after.

That's why there isn't need to do explicit flush.  If you really want to do that though, you can look into using atomic conversations.  Set the flushModeType to manual, then Seam will only flush when you tell it to.  The docs should have more about it.  Good luck.

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

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



More information about the jboss-user mailing list