The hashcode returned will be same for same set of primary key. This is
double checked by equals method. The container then creates a new EJBObject
instance for every user and associates the EJBObject object with the same
entity bean instance. So there exist only one instance of bean and multiple
instances of EJBObject.

Regards
Satya

-----Original Message-----
From: E Bakka Reddy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: Re: hashCode() and equals() (was RE: BMP EJB)


Hi Dave,

Can you explaing about when two users accessing the same entity(same record
in d/b), whether the hashCode will be same or different( i hope there will
be a single ejbObject but two instances, one for each each user, if iam
wrong correct me ) in this
scenario can you explain.

Reddy

===========================================================================
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".

Reply via email to