About Bean-Managed Persistance ...
1 posts in topic
Flat View  Flat View

Posted By:   James_Gordon
Posted On:   Thursday, March 28, 2002 06:42 PM

In CMP, we need not to code for the object creation, deletion, selection etc.

In BMP, we need to do all that by ourselves and by means of JDBC.

If that is the case, then why we need/use BMP? Because in the end we are just using JDBC. Why don't we code JDBC straight away instead of using EJB BMP?

Thank you.

Re: About Bean-Managed Persistance ...

Posted By:   Anonymous  
Posted On:   Friday, March 29, 2002 03:38 AM

Coding to JDBC in a DataAccessObject that is called directly from your client code or through a session bean may well suit your needs and will be far quicker (both in respect of coding time and execution time) than setting up an entity bean.

However, if you want to take advantage of the ejb provided services including distributed transactions, caching, security management, location transparency and monitoring services, EJB is the way to go.
About | Sitemap | Contact