One temporary workaround is when you do the re-try, you can clone the failed 
pojo to a new one first.

For example, if you know that:

tx.begin();
lobby.add(player);
tx.commit();

failed, then do
Playler player_new = player.clone() // or whatever to construct a new player

then
tx.begin();
lobby.add(player_new);
tx.commit();

It should work. The problem here is that the rollback is not completely clean 
in this case. It still has added an interceptor to the player pojo. By creating 
a new one then will bypass this problem.


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

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


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to