-
1. Re: tx configs and command interface for web app
koen.aers Sep 1, 2006 2:27 AM (in response to tom.baeyens)Is this already solved? Can the two configurations (one for the webapp and one for the EE service) not live together? Relying on the command interface will result in problems trying to port the webapp on containers like Tomcat, no?
Regards,
Koen -
2. Re: tx configs and command interface for web app
tom.baeyens Sep 1, 2006 3:11 PM (in response to tom.baeyens)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.