Hi Chitto,
Session object is the instance of the session bean and EJBObject is the
instance of the class implementing Remote interface and generated by the
container automatically. Both are different objects.
Each session or entity object has a unique identity and in the case of
entity beans it is represented by the primary key. In the case of session
objects it is generated by the container and each stateful session object is
unique whereas all stateless session objects within the home are having same
identity. This can be verified by using isIdentical() method.
EJB 1.1 spec says that if stateless session bean is deployed multiple times
then stateless session objects from diff. homes will have diff. identity but
i got the result that is not consistent with this. Even if the homes are
diff identity is same. May be someone else can answer this question.
Regards
Ripan
-----Original Message-----
From: chittaranjanp [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 11:48 AM
To: [EMAIL PROTECTED]
Subject: EJB Object and Session Object
Hi,
Can anyone explain me what exactly is session object and what is the
similarity or dissimilarity of Ejb object with session object .
What exactly is meant by the identity of an object within the context of
session objects? isIdentical() is used to get this info.
Regards
Chitta
===========================================================================
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".