Archived

This forum has been archived. Please start a new discussion on GitHub.

The "callback" string in the callback demo

Hi!

I am looking at the callback demo again, and it executes the following code in the server:
CallbackPrx self = CallbackPrx::uncheckedCast(adapter->createProxy(Ice::stringToIdentity("callback")));
    adapter->add(new CallbackI, Ice::stringToIdentity("callback"));

In this code the "callback" string is hardcoded twice. I tried to alter it to the same something else in both calls, and it breaks the demo. Is this string hardcoded in the Ice-core? Because I can not trace it anywhere else in the programmer's code or in the config files. I have the feeling I have just overlooked something....

Thanks,
Catalin

Comments

  • marc
    marc Florida
    If you change the object identity in the server, you must make sure that the client knows this new identity. For this demo, you can do this by changing Callback.Client.Callback in the file config.
  • Of course, how blind can I be ...

    Thanks