Home Help Center

IceGrid: How to obtain server ID from object ID

jharriotjharriot Member John HarriottOrganization: BAE SystemsProject: P3 Mid Life Upgrade ✭✭

I'm using Ice 3.3.1.

Is it possible to obtain the server identity from a given object identity?

My intention is to use IceGridAdmin to manually launch a set of server applications that host a selected set of object identities.

I can retreive the set of all server IDs stored in the IcGrid Registry via IceGrid.Admin.getAllserverIds(). Now I need a way of filtering out the server IDs that are applicable to the input list of object IDs.

Regards John


  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi John,

    You could call the IceGrid::Admin::getServerInfo method for each of the servers to get the server descriptors and check the well-known objects from these descriptors. This should allow you to build a map of object IDs to server IDs.

Sign In or Register to comment.