• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Attributes

 
cheenu Dev
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are 6 transaction attributes for use by a bean using CMT
One cant have "supports, NotSupported , Never" for a meaningful transaction .then whats the use for these attributes.
 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
These three can be used with a session bean if required.
 
AmitKumar Jain
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From EJB spec Pg 352

Containers may optionally support the use of the NotSupported, Supports, and Never
transaction attributes for the methods of entity beans with container-managed persistence
because the use of these transaction modes may be needed to make use of container-managed
persistence with non-transactional data stores
. In general, however, the Application Assembler
should avoid use of the NotSupported, Supports, and Never transaction attributes for
the methods of entity beans with container-managed persistence because it may lead to inconsistent
results or to the inconsistent and/or to the partial updating of persistent state and relationships
in the event of concurrent use.


I hope this is clear now..
Amit
 
cheenu Dev
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes its clear but whats
non-transactional data stores

i dont get that
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic