Satyabrata Dash wrote:
>
> 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.
Whether or not there is a single instance (or multiple instances) per unique
entity is vendor-specific. So while your last sentence may be true of some
products (or some versions of some products), it is not true in the general
case.
> 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".
--
________________________________________________________________________________
Evan Ireland Sybase EAServer Engineering [EMAIL PROTECTED]
Wellington, New Zealand +64 4 934-5856
===========================================================================
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".