Results 1 to 3 of 3

Thread: The "callback" string in the callback demo

  1. #1
    catalin is offline Registered User
    Join Date
    Jul 2003
    Location
    Oslo, Norway
    Posts
    57

    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:

    Code:
        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

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    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.

  3. #3
    catalin is offline Registered User
    Join Date
    Jul 2003
    Location
    Oslo, Norway
    Posts
    57
    Of course, how blind can I be ...

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 03-14-2011, 05:08 PM
  2. Replies: 5
    Last Post: 06-22-2009, 08:15 AM
  3. Replies: 1
    Last Post: 05-07-2008, 05:56 PM
  4. Release "callback class" in AMI
    By zzm7000 in forum Help Center
    Replies: 3
    Last Post: 02-28-2008, 07:06 AM
  5. Replies: 8
    Last Post: 03-21-2006, 08:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •