• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Another drawback for BMT is the fact that it can never join an existing transaction.

 
Steve James
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This statement is of EJB3 in Action

Can anybody please explain me what does this mean actually ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34207
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's take this through step by step. What part of the statement do you understand:
1) What is BMT?
2) What is a transaction?
3) Why this is the case?
 
Steve James
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Let's take this through step by step. What part of the statement do you understand:
1) What is BMT?
2) What is a transaction?
3) Why this is the case?


I too want a good teacher . Thanks for being my teacher

1) What is BMT?


When Transactions are managed by the programmer for instance using JTA UserTransction

2) What is a transaction?


A piece of code which can be under our control.


This is what i need to find out.

3) Why this is the case?

 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example, you use BMT, you start transaction in beanA.methodA and methodA call beanB.methodB, beanB.methodB cannot join the transaction that was initiated by beanA.methodA.

Hope this helps.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34207
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good. The answers to those questions are part of the "show some effort" that makes JavaRanch great. In the future, you could show what you do know in the initial post.

On to your question, the started of a XA (2 phase transaction) requires each party to implement some rollback/commit logic. BMT doesn't have this and therefore can't be part of the transaction.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic