A ejb Refence is the EJBObject (or reference to the EJBObject) while the
Handle is EJBObject.getHandle()... Here are some of the differences:
1) Handle is serializable.
2) Handle encapsulates the EJBHome and PrimaryKey. This means, combined
with the above attribute, you can get a handle, serialize it, shut down the
server, bring it back up, and the Handle.getEJBObject will bring you the
correct EJBObject
3) Because of the attribute described in #2, Handles are
non-server-specific. If you migrate your beans to a different server
(different IP address), your serialized handles will still work!
Gene Chuang
Teach the world... Join Kiko!
<http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang>
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Kumar, Vijay1
Sent: Monday, September 04, 2000 10:46 PM
To: [EMAIL PROTECTED]
Subject: Deferrence between Handle and Reference w.r.t EJB
Hi,
I am not able grasp the difference between Handle and Reference. I had
understood both to be the same , but the EJB specification use these two
terms in different contexts.
Can anyone kindly help me understand what these two terms mean w.r.t EJB.
Thanks
vijay
===========================================================================
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".