• 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
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Difference between CMT and BMT

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is Container managed transaction and bean managed transactions?

Which type of ejbs (session, entity, message driven) implement them?

What's the imapact of them on each bean type?

In which context each is used?

Pls specify the answers for the above. It will be a great help to me.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good article on ejb transactions
http://www.kevinboone.com/ejb-transactions.html
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

EJB container provide 6 primary services ,Transactions is one of them

check EJBContext interface [having 3 transaction related methods 1 for BMT 2 for CMT] extended by SessionContext,EntityContext,MessageDrivenContext. depending on the bean kind u will set the context.

Originally posted by Laxmi:
What is Container managed transaction and bean managed transactions?



2 types of transactions .CMT container will take care,BMT you can useUserTransaction interface to demark the transaction


Transaction
Which type of ejbs (session, entity, message driven) implement them?



Session,Message beans can partcipate CMT BMT
Entity only CMT


What's the imapact of them on each bean type?



-------------


In which context each is used?



BeanContext


Pls specify the answers for the above. It will be a great help to me.


[ October 21, 2005: Message edited by: madhav kamal ]
 
madhav kamal
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
EJB supports both declarative n programmatic.

declarative in ejb-jar.xml <transaction-type>,<transaction-attribues>rs
 
It will give me the powers of the gods. Not bad for a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic