This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NEVER and NOT_SUPPORT in CMT does not mean unspecified transaction context  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1566
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On p.166 of Ivan's notes,

Examples of methods that execute in an unspecified transaction context include:
...
3) Methods in EJBs with CMT that have the transaction attribute NEVER or NOT_SUPPORT



I think "NEVER" or "NOT_SUPPORT" means the EJB won't run in any transaction at all.
However, with "unspecified transaction context", it is up the the container to decide whether
the EJB should be run in a transaction or no in a transaction.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2986
222
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly, methods having transaction attributes as NEVER and NOT_SUPPORTED are specified to run without a transaction. The container cannot decide to run these inside a transaction.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!