• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPA exceptions and JTA rollback  RSS feed

 
Tamas Polgar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
This topic is not exactly clear for me

I have few examples

I have a stateless bean:


(1,3,5)
NonUniqueResultException should NOT mark the transaction rollback. But the call throws an Exception.
Should the new user be saved?

(2,4)
EntityNotFoundException should mark the transaction rollback. But I catch the exception.
Should the new user be saved?

I tried them with jboss,
1: rolled back
2: didnt roll back
3: rolled back
4: rolled back
5: rolled back

But I think the output should be different

?

Thank you
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!