• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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,
 
There's a hole in the bucket, dear Liza, dear Liza, a hole in the bucket, dear liza, a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic