R
rajesh.shiggaon
Hi Everyone:
I have some questions on the entity beans, these have been bugging me
for a quite time. So just thought of getting them straight.
1) The primary key object thats gets generated after the create/finder
methods from the EJBHome interface, how is that related with EJBObject?
a) How the container relates this Primary object with EJBObject? I know
that Container keeps track of this primary object.
b) Lets say an Entity bean EJBObject has been created for a particular
record. If a new client wants to access the same record a weather a new
EJBObject gets created or the same one will be used? Will there be
different Primary object instance also or only one?
2) If you could see the "Client View of Entity Object Life Cycle" in
the EJB spceification, they say that whenever we directly delete a
record from a DB, how does the EJBObject also gets deleted with it?
a) Does the container always keep on querying on the DB and then delete
the EJBObject?
b) If it does not what is the use of the callback method of ejbLoad().
If it could not find the record based on the primary key that it gets,
then how it should handle? it cant even written back an expection
saying that the record doesnt exist
If any of the questions are misleading or not understandable, let me
know I can reframe those.
Thanks in advance
Rajesh Shiggaon
I have some questions on the entity beans, these have been bugging me
for a quite time. So just thought of getting them straight.
1) The primary key object thats gets generated after the create/finder
methods from the EJBHome interface, how is that related with EJBObject?
a) How the container relates this Primary object with EJBObject? I know
that Container keeps track of this primary object.
b) Lets say an Entity bean EJBObject has been created for a particular
record. If a new client wants to access the same record a weather a new
EJBObject gets created or the same one will be used? Will there be
different Primary object instance also or only one?
2) If you could see the "Client View of Entity Object Life Cycle" in
the EJB spceification, they say that whenever we directly delete a
record from a DB, how does the EJBObject also gets deleted with it?
a) Does the container always keep on querying on the DB and then delete
the EJBObject?
b) If it does not what is the use of the callback method of ejbLoad().
If it could not find the record based on the primary key that it gets,
then how it should handle? it cant even written back an expection
saying that the record doesnt exist
If any of the questions are misleading or not understandable, let me
know I can reframe those.
Thanks in advance
Rajesh Shiggaon