Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UNSPECIFIED TX CONTEXT !!

 
Marco Lombardo
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which are the methods in the three types of EJB (MDB,Entity and Session) that run in the unspecified transaction context?
I refer also to container callback methods.

Thanks
Marco
 
B.Sathish
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is easy to figure out if you remember all the Bean Things. If you cannot mark a transaction for rollback or check if a transaction is marked for rollback from a method ie you cannot do a setRollbackOnly() or getRollbackOnly() from a method, that method runs in an Unspecified Transaction Context. You don't have to memorize the list
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic