Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic