• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between CMT and BMT

 
Laxmi Raghu
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • 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.
 
renjith abr
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good article on ejb transactions
http://www.kevinboone.com/ejb-transactions.html
 
madhav kamal
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hi
EJB supports both declarative n programmatic.

declarative in ejb-jar.xml <transaction-type>,<transaction-attribues>rs
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic