When the passivated ejb being activated again, ejbLoad() is invocked, it
will read state from DB, so your non transient varibles will have correct
data.
> -----Original Message-----
> From: Ashique K [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 23, 2000 2:38 AM
> To: [EMAIL PROTECTED]
> Subject: BMP Entity beans
>
>
> Hi
>
> I am new to EJB and is in the process getting
> familiarised.. I have a douubt regarding BMP Entity
> beans.. It says while you use ejbRemove(), ejbLoad()
> or ejbStore(), you make sure the bean you are removing
> or storing, by the EntiytyContext.getPrimaryKey()..
> The reason for it, the document says, your beans will
> be pooled, and while you are removing or storing data
> using the bean, your bean might have used by some
> other client, so it might contain bad data and you may
> be removing or updating the wrong data.. But, the book
> which I am reading, in the previous chapters says
> that, if the client has timed out and if the container
> is out of resources, the same bean will be reused for
> other clients.. And while doing so all the class
> member varibles which are serialised and non transient
> will be passivated to a persistent storage and when
> the client is back again activaion process takes
> place.. So my doubt is if the container is doing such
> a passivation and activation, how can the bean contain
> bad data..
> OR does it means that only the Context object is
> passivated to a persistent storage, so while activaion
> only the context object is retrieved
> I will be highly gratefull if somebody can clear my
> doubt..
>
> Thanks
>
> Ashique
>
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages 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".