• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction in MDB

 
chhachhrauli Garg
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can anybody please help me in understanding transaction in MDB. ejbRemove() and setMessageDrivenContext() both run in no Transaction in MDB. Do we need to cram this or is there any way to understand why these two methods are not a part of transaction in MDB?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need transactions for business logic code. The onMessage() is where the business logic is found in case of MDB so it does not make sense to have transactions in other methods.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic