Title: Entity Context !!!!!?
There are states during an entity Bean's lifecycle where the EntityContext is used to get the PrimaryKey in order to perform functionality on an anonymous (not loaded, no state, etc.) entity bean.
 
You'll need to get the PrimaryKey from the EntityContext in a BMP entity for the following methods: ejbLoad, ejbRemove.  ejbLoad does not have to be called on an entityBean to remove it; thus, you could not get the bean's PK from its internal state.  Also, before ejbLoad is called, the bean either does not have data or its data is stale, so the context.getPrimaryKey is needed to initiate the process of a refresh.
 
Hope this helps.
 
Jason
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Mahendra Yadav (CTS)
Sent: Tuesday, March 14, 2000 12:15 PM
To: [EMAIL PROTECTED]
Subject: Entity Context !!!!!?

Can anybody throw some light on what is EntityContext and what exactly is its significance in context to managing bean instances between pooled and ready state and also it association with the EJBObject. I haven't been able to understand this fully.

Thanks and regards

:Mahendra://~

Reply via email to