[jboss-user] [JBoss Seam] - Re: Rollback exceptions without ending the conversation
cja987
do-not-reply at jboss.com
Wed Mar 7 19:22:14 EST 2007
Propagation won't recreate the conversation, and your conversation is still active if you didn't end it yourself. However, your entityManager is toast, so you need a new one, and that's usually done with a new conversation. It should be possible to recreate the entityManager within the current conversation and merge any detached instances into the new one, but the details elude me (hell, I can't even manage to use merge() correctly).
I do number 1, and yeah I find it a maddening reminder of both JPA and JTA's inadequacies (JTA because it doesn't support nested transactions, which would more or less fix this problem).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026047#4026047
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026047
More information about the jboss-user
mailing list