EJB 1.1 Spec (9.1.5.2):
The exact times that the container invokes ejbLoad depend on the
configuration of the component and the container, and are not defined by the
EJB architecture. Typically, the container will call ejbLoad before the
first business method within a transaction to ensure that the instance can
refresh its cached state of the entity object from the database. After the
first ejbLoad within a transaction, the container is not required to
recognize that the state of the entity object in the database has been
changed by another transaction, and it is not required to notify the
instance of this change via another ejbLoad call.


Daniel




>From: Vaibhav Bhomkar <[EMAIL PROTECTED]>
>Reply-To: Vaibhav Bhomkar <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Maintaining data consistency in Entity bean
>Date: Sat, 8 Sep 2001 08:18:32 +0530
>
>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".


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

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