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

Message-driven bean's transaction attributes

Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFEJB says:
Message-driven beans can use only TWO attributes: Requires and NotSupportd

My question is:
If it is possible to use NotSupportd then why can not it use Supports attribute.
Any way it�s going to run with an �unspecified transaction context�

Please clarify this�
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MDB doesn't have any clients, so it is not possible for a MDB to run in an caller's tranction context.Transaction attribute 'supports' says that either a bean can run in caller's transaction or unspecified transaction context.Hence declaring the 'supports' transaction attribute for MDB doesn't make any sense.
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
parthiban ,
If MDBS have tranx attribute of "Supports" where do u think the callers transactional context will be delegated as the mdbs get triggered by the arrival of a message on its waiting queue and hence the attribute is no meaningful .

Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic