If you need to maintain the identity mapping you'll have to do so yourself
(e.g. by using a hashmap keyed by identity...). Remote references are
handled for you ok, but copies are not. This is also true for CORBA. The
only middleware I am aware of that maintains identity caching or
"replication" is GemStone's Smalltalk client. But that's quite different
than EJB...
Regards,
-Chris
> -----Original Message-----
> From: Daniel Bradby [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 07, 2000 4:05 AM
> To: [EMAIL PROTECTED]
> Subject: pass by value / ref?
>
> I think I have come across an issue which I am sure many of you have
> come across and dealt with before.
>
> I am creating an object proxy that contains two collections. There are
> situations were the another single object resides in these two different
> collections.
>
> When I send this object proxy over the wire the single object in the two
> collections is similar by value but not by reference anymore.
>
> I currently overcome this by assinging object IDs to each object which
> helps.
>
> Anyone got some strategies / thoughts on this
>
> --
> Daniel Bradby
> BJS Australia
> [EMAIL PROTECTED]
>
> ==========================================================================
> =
> 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".