Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction attribute NEVER vs NOT_SUPPORTED

 
mallika shah
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whats the difference between these two?
when to use NEVER and when should we use NOT_SUPPORTED.

thanks,
mallika
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When the transaction attribute is NEVER, no transaction can be propogated to the method. If the transaction is propagated to method it throw exception. The NOT_SUPPORTED silently ignored the propagated transaction.

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to add that NOT_SUPPORTED will suspend the current transaction. The transaction will then resume when the "NOT_SUPPORTED" method returns.
 
mallika shah
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Narendra and Christophe for the reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic