Title: RE: Maintaining data consistency in Entity bean

Yes whenever you try to acess bean through remote methods, container will call ejbLoad, ejbStore
to maintain consistency with database. Does anybody have different opinion.

Vaibhav

    -----Original Message-----
    From:   Vincent Shek [SMTP:[EMAIL PROTECTED]]
    Sent:   Saturday, September 08, 2001 12:11 AM
    To:     [EMAIL PROTECTED]
    Subject:        Maintaining data consistency in Entity bean

    Hi all,

    I have a question regarding data consistency maintained by entity bean. If I
    have a entity bean that represents an employee table consists of 2 columns:
    ID and Name.  I go through my normal EJB routines and obtain the remote
    reference to the employee object.  According to the EJB spec, no concurrent
    access can be made to employee bean and I was guaranteed data consistency.
    What would happen if someone update the employee database table
    directly(through either direct JDBC call or other methods), would my
    employee bean be refreshed properly?

    Thanks in advance for your help.

    Vincent

    ===========================================================================
    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