About EJB types. CMP, BMP, Session, Entity beans, their differences, when to use what type of beans ?

Showing Answers 1 - 1 of 1 Answers

Sushil

  • Nov 24th, 2005
 

We use session beans when we want to store data for a session for a transaction ,we use session bean.when we dont want to make calls to database again and again and we require that data for an entier application,we use Entity bean.

There are two types of transactions for these beans:

CMP is Container Manged Persistence.

BMP is Bean managed Persistence.

There is no specific purpose when to use CMP or BMP.But the CMP is preferred and provide better performance and reliable.Where as BMP, It will require the programmer to write code to handle db transaction and provide the means to control transactions.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions