[omniORB] What's wrong with me?

edward_lin edward_lin@EGPALM.com.tw
Tue, 22 May 2001 18:54:49 +0800


Thanks, 
Yes, the behavior is reasonable since "they are" same object.
But how can I create several separate object instances of the same interface
from clients (possible different clients) respectively.
Is there any omniORB or CORBA reference with more detailed explanations?

Best Regards,
Edward Lin

-----Original Message-----
From: Duncan Grisby [mailto:dgrisby@uk.research.att.com]
Sent: Tuesday, May 22, 2001 6:28 PM
To: edward_lin
Cc: 'omniorb-list@uk.research.att.com'
Subject: Re: [omniORB] What's wrong with me? 


On Monday 21 May, edward_lin wrote:

> I happened to find a strange behavior of corba object implementation, it
> seemed that the attributes set by first corba client will be overwritten
by
> the second corba client invocation; the following is the simplifed code

[...]
> I ran first client to set attributes to "1" and "2", the process waited
for
> the keystroke, at this time, I ran second client to set attributes to "5"
> and "6", and console printed "11". That's OK, then I fed a keystroke to
the
> first client, and it printed unexpected "11", why not "3"? 

I think you have fundamentally misunderstood the CORBA object model.
Both of your clients are talking to the _same_ object. Of course they
see the same values as each other. You have to create two separate
objects if you want the actions of the two clients to be separate.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --