• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction context + MDBs question.

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A transaction can span multiple method calls on :

A - Entity bean instance

B - BMT Stateless SB instances

C - CMT Stateless SB instances

D - BMT Stateful SB instances

E - CMT Stateful SB instances

Answers: A, D e E.

OK, that's fine and what about MDBs ??

Since it can also be declared as Container(CMT) and Bean(BMT) in <transaction-type> tag in <message-driven> it can also span multiple method calls?

Tks ;-)
 
Aakash Parashar
Ranch Hand
Posts: 123
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MDBs are stateless, so the transaction should be completed in the method it started.
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right NEO, then that means it cannot span multiple method calls!!!

Tks ;-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic