• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This statement is of EJB3 in Action

Can anybody please explain me what does this mean actually ?
 
author & internet detective
Posts: 41861
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?


 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41861
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic