This content has been marked as final.
Show 2 replies
-
1. Re: One more question about transactions
bill.burke Dec 12, 2005 11:32 AM (in response to jacekolszak)#1) I don't think @FlushMode on the class will work. Do EntityManager.setFlushMode(NEVER) instead.
#2) Is the RamzesException a RuntimeException or RemoteException or annotated with @ApplicationException(rollback=true)?
#3) FYI, FlushMode.NEVER will be removed in the final version of the specification. Instead, you can get the same behavior by doing EM operations outside of a JTA transaction. If you don't like this (I don't) please bitch directly to Mike Keith <michael.keith@oracle.com> please and also ejb3-feedback@sun.com.
#4) @FlushMode is dissappearing I believe as well. -
2. Re: One more question about transactions
jacekolszak Dec 13, 2005 3:40 AM (in response to jacekolszak)"bill.burke@jboss.com" wrote:
#1) I don't think @FlushMode on the class will work. Do EntityManager.setFlushMode(NEVER) instead.
Ok.. I changed this. But my example still doesn't work :( I mean that data aren't rollback.
#2) Is the RamzesException a RuntimeException or RemoteException or annotated with @ApplicationException(rollback=true)?
Yes, it is annotated with @ApplicationException(rollback=true)