Win a copy of Terraform in Action this week in the Cloud forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Transaction in BMP and CMP

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good morning Ladies and Gentlemen,
I am confused by the way BMP and CMP support transactions. Both BMP and CMP support transactions. But why is it that I have to have the code to manage transactions in BMP and not in CMP? Is it true that the container wouldn�t roll back the transaction if a system error thrown? My container let me choose any of the 6 the transaction attributes for BMP and CMP. Any help appreciated.
 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BMP - As a Bean Programmer you have manage transaction.

CMP - Container will do the transaction, but you have to tell container which business methods you want conatiner to execute using DD.

Advantage of BMP is, you can have more flexbility than CMP.

DisAdvantage of BMP is, when you want to change the transaction behaviour you need modify the code.But in CMP, you just need to change the transaction attribute mentioned in DD.

HTH,
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic