Chris,

<vendor>

I believe you are wrong.  If I have an object:

        public ObjectProxy implement Serializable {
          private Collection c1;
          private Collection c2;
        }

And I send it to a peer using a correct implementation of RMI
(regardless of the protocol underneath), then any value objects
which are in both c1 and c2 should retain their identity
equivalence, i.e., they should still be pointer equivalent.

Daniel,

If you are not seeing this behavior, then you are using a broken
implementation of RMI.  I posted a few months back a test which
can be used to check how good your product's RMI implementation
is, under the (admittedly oddly titled) thread:

        Why smoke signals matter

In this I show that a number of vendors don't implement the RMI
semantics correctly.  The case you are seeing is not included
in the test, however, and I suspect this case is probably broken
in in some of the AppServers which passed the existing tests.

If, by bad luck, you are seeing this incorrect behavior using IAS,
I would very much like to know about it, as it would constitute a
bug.  If so, please post to:

        news://newsgroups.borland.com/inprise.public.appserver

</vendor>

-jkw

Chris Raber wrote:
>
> 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".

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