Home Help Center

dynamic replicaGroup registration

GreenhippoGreenhippo Member AlexOrganization: University of AucklandProject: Intelligent Middleware ✭✭
Hi,

Im currently looking into creating replica groups at runtime, ive managed to get an adapter dynamically registered with a replica group and have worked out how to dynamically registered well-known objects, but am unable to get an object registered as part of the replica group

How do i tell a dynmically registered object to be part of a dynamically registered replica group?

Comments

  • zhizhi Member Zhi Quan LeeOrganization: University of AucklandProject: Dynamic Reconfiguration with Correctness Assurance ✭✭
    Please let me know your findings when you do. I am sitting across the room and wrecking my brains out too.
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    You just need to register the object with the right proxy, i.e.: the adapter id part of the proxy must contain the ID of the replica group. For example, if the replica group ID is "MyReplicaGroup":
       IceGrid::AdminPrx admin = ... obtain admin proxy ...
       admin->addObjectWithType(communicator->stringToProxy("[email protected]"), "::Demo::Hello");
    

    If this doesn't answer your question, please provide more information such as how you dynamically register the replica group, the Ice/platform version you're using and the reason why you can't register the well known object.

    Cheers,
    Benoit.
Sign In or Register to comment.