• Post Reply Bookmark Topic Watch Topic
  • New Topic

Rollback Question

 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does rollback neccesarily means session bean instance will be discarded ?
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Some examples are

- CMT bean and you call EJBContext.setRollbackOnly()
- an Application Exception is thrown with rollback=true is thrown

Both will lead to a rollback but the bean instance won't be discarded.

 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks..just a confusing doubt.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!