Ritesh wrote:

> Hi François ,
>
>     Thanks  for quick reply .
>
> François Exertier wrote:
>
> > 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 ...
>
>      But in BMP you have to call ejbload/ejbstore method explicitly

No ! with BMP, you write the code of ejbLoad/ejbStore, BUT the container
will call these methods when necessary, not you !


>
>     Transaction => that means i don't have to write code for UserTransaction's    
>methods
>                                        begin() , commit() , rollback()
>                                         Is this taken care by EJB server.

Yes.


>
>
> >
> > - entity beans are shared between several clients, while a session
> >    bean is dedicated to one client.
>
>     You mean to say that one enity bean can be in many transaction by serveral 
>clients
>     at a same time and the modification , cancellation , updation to enity bean is 
>taken care
>     by the EJBserver .
>     Did i get correctly ?

Yes. Transaction isolation, concurrent access is managed by the EJB server.

François
--
==================================================================
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