Home Help Center

The "callback" string in the callback demo

catalincatalin Member ✭✭
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

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
  • catalincatalin Member ✭✭
    Of course, how blind can I be ...

    Thanks
Sign In or Register to comment.