[jboss-dev-forums] [Design of JBoss jBPM] - Re: tx configs and command interface for web app

tom.baeyens@jboss.com do-not-reply at jboss.com
Fri Sep 1 15:11:15 EDT 2006


the problem is that with a command interface, i don't see a way to prevent many small transactions during the rendering phase.

doing it with commands, each backing bean that is accessed during rendering of a page would result in a separate transaction.

i don't see a way around that with jsf and ejb cmt.  

unless we use JTA directly (through the UserTransaction) we can't make sure that the rendering is done in one transaction.   but then all the commands are executed in the same transaction.  which conflicts with the idea of the each command being executed in one transaction...

using the UserTransaction, we can get the exact same behaviour in enterprise as in standard edition.  namely one transaction for the user command (if there  is one) and one transactino for the rendering phase.

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

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



More information about the jboss-dev-forums mailing list