• 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
 
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!