I want to try something like this in BMP. Please suggest me if it is ok......

I think ejbStore and ejbLoad is an overhead in case of Entity beans because
unnecessary DB calls are made even if i haven't updated anything in my bean. So
i am planning to use BMP using the below approach.

Implement only ejbCreate and ejbLoad methods and do not implement ejbStore. For
DB consistency, After each update operation, i write sql for updating into the
database. This also solves my problems of table joins (joins are inevitable in
my application).

Thanx and Regards,
Sreenivas


Shelly Aggrawal wrote:

> Hi Kelvin,
> You do not have to do anything different than you do for updating a CMP. The
> only difference is that you have to write the 'store' method of BMP to store
> the object state. The store is internally called by the container and the
> state is updated.  You so not have to worry about concurrency also.
>
> ----- Original Message -----
> From: Luo Kelvin <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 11, 2000 2:06 PM
> Subject: How to update a BMP?
>
> > Hi, everyone,
> >     I want to change the entry of a entity bean. For a
> > CMP, I konw I just set the fields of the bean and let
> > the container do the rest. But for a BMP, I wonder if
> > I must implement a method to write the data into
> > database and call it explictly from the client. If it
> > is the case, do I need consider the concurrent acccess
> > problem?
> > Thanks in advance.
> > Kelvin.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Mail - Free email you can access from anywhere!
> > http://mail.yahoo.com/
> >
> >
> ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff EJB-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to