Hi,

so, why using BMP if you can do the same into session beans ?
is your question ...

- with BMP you write the data access code, but you let the
  container manage the data synchronisation, transactions, i.e.
  when to load/store the data ...
- entity beans are shared between several clients, while a session
   bean is dedicated to one client.


Regards,

François

Ritesh wrote:

> Hi ,
>
>     While i am designing my application , i came across with some doubts regarding 
>entity
> beans .
>
>     Please go through the following .
>
>    If some where i went wrong or any concept i have taken wrongly please correct me
>
>     In the j2ee blueprints it is  mentioned that for application servers
>     portability you should use BMP inested of CMP until EJB2.0 spec. doesn't come up 
>.
>
>     Now i am confused regarding entity beans .
>
>     If one make a CMP entity bean which maps to one table in database.
>     all the synchronization between database and entity bean is taken care by EJB 
>server .
>
>     that means user has to concentrate on Business logic only .
>     so one should go for CMP .
>
>     But CMP doesn't support more than one table from database .
>     if someone has to use more than one table for an entity bean then use
>     the option is to use  BMP .
>
>     In which , any way one has to make connections with database and insert into 
>tables .
>     So ,  why one can't  write the same logic(Insert, delete , modification) into the
> stateless session bean ,
>     which is controlled by some synchronized method of controller component ,
>
>     Then why should one use BMP ?
>     What are the benefits in using BMP ?
>
> Thanks
> Ritesh.
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".

--
==================================================================
Francois EXERTIER         Evidian (Groupe Bull)
     1, rue de Provence,  BP 208,  38432 Echirolles cedex, FRANCE
     mailto:[EMAIL PROTECTED]
     http://www.evidian.com/jonas   http://www.objectweb.org/jonas
     Tel: +33 (0)4 76 29 71 51  -  Fax:   +33 (0)4 76 29 77 30
==================================================================


----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to