*
The moose likes EJB and other Java EE Technologies and the fly likes Another drawback for BMT is the fact that it can never join an existing transaction. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Another drawback for BMT is the fact that it can never join an existing transaction." Watch "Another drawback for BMT is the fact that it can never join an existing transaction." New topic
Author

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

Steve James
Ranch Hand

Joined: Apr 12, 2009
Posts: 44
This statement is of EJB3 in Action

Can anybody please explain me what does this mean actually ?


I am just a brick in the wall of Java
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Steve James
Ranch Hand

Joined: Apr 12, 2009
Posts: 44
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

Joined: Jul 05, 2005
Posts: 1936
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.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Another drawback for BMT is the fact that it can never join an existing transaction.
 
Similar Threads
Two ways to get Connection object.
[Hollywood] All time favourites
final/private method......
Need a good graph tool
is object a list of string or only a string?