You could use stateful session bean for beginning/committing transactions and optimistic locking in entity beans.
The possible problem is the transaction timeouts.
Probably, you would like to use Instance Per Transaction container for this setup.
Alternatively, you have to use value objects are something like that for collecting form data.


Wax, Michael wrote:

What is the best way to implement an optimistic lock using EJB 2.0 CMP that spans multiple requests? For example, we want to implement optimistic locking on a multipage form submission.



This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.




------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to