I am using weblogic 5.1, you can:
/**
   * Returns whether the EJBean has been modified or not.
   *
   * This method must be public for the container to be able to invoke it.
   *
   * @return                  boolean isDirty
   */
  public boolean isModified() {
    log("isModified(): isDirty = " + (isDirty ? "true" : "false"));
    return isDirty;
  }

  /**
   * Sets the EJBean's modified flag.
   *
   * @param flag              Modified Flag
   */
  public void setModified(boolean flag) {
    isDirty = flag;
    log("setModified(): " + id() + (String) (flag ? ": requires saving"
                         : ": saving not required"));
  }

  public void ejbStore() {
    log("AccountBean.ejbStore (" + id() + ")");

    setModified(false);
  }


in your ejb-jar.xml files:
          <is-modified-method-name>isModified</is-modified-method-name>

> -----Original Message-----
> From: Arun Kumar [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 16, 2000 5:14 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Can there be multiple Entity EJBObject representin g a
> single record in the table.
>
>
> Thanks Guys,
>     I optimized ejbLoad using dirty flag.
>
> Thanks Se Hee and Frank Sauer.
>
> Regards
> Arun.
>
> >
> >
> > Hi EJB Gurus,
> >
> >    I have a requirement to optimize ejbLoad and
> > ejbStore for BMP entity beans.
> > It can be assumed that access to data is always
> > using
> > entity beans.
> >  I have a dirty flag which I mark when a remote
> > method
> > change any data.
> >  And during ejbStore callback I update the data in
> > the
> > database only if the dirty flag is set.
> >
> > I want to do the optimization of ejbLoad also.
> > My Question is
> >    1) Can there be at any point in time 2 EJBObjects
> > representing the same data/row in a single server.
> >         In that case I cannot optimize on ejbLoad.
> >
> > I am using weblogic 4.5.1.
> >
> > Thanks in advance
> > Arun
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send instant messages & get email alerts with Yahoo!
> > Messenger.
> > http://im.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".
> >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.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".

Reply via email to