Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

NEVER and NOT_SUPPORT in CMT does not mean unspecified transaction context

Ranch Foreman
Posts: 1897
  • 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.
Creator of Enthuware JWS+ V6
Posts: 3341
Android Eclipse IDE Chrome
  • 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.
I was her plaything! And so was this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic