you need to tell your ejb server that the database isn't owned by it. in
weblogic, this property is dbIsShared (found in the deployment descriptor
for ejbeans). when dbIsShared==false, then ejbLoad() is called but the
values used are from the ejb server cache, not the underlying pstore.

> -----Original Message-----
> From: Muhammad Farhat Kaleem [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 29, 1999 6:35 AM
> To:   [EMAIL PROTECTED]
> Subject:      ejbLoad()
>
> Hello,
> i would appreciate if someone explain to me how and when ejbLoad() is
> called for entity beans with CMP........is this method called every time
> there is a business method invocation ? and suppose if i create an
> entity bean, then i change a field manually in the database and a
> business method is called on the EJB, will the ejbLoad() be called, and
> will this mean reading values from the database...........actually what
> i am seeing right now is that i changed a value of a field directly in
> the database, and now when a method is called on the ejb, the output
> from the container shows that the ejbLoad() is called, but it shows the
> old value , i.e the value with which the bean was created, and not the
> value that was modified directly in the database..........
>
> regards
> farhat
>
> ==========================================================================
> =
> 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