Home Help Center

ice_ids for proxies?

Alexey RomanovAlexey Romanov Member Alexey RomanovOrganization: Focus MediaProject: Smart card controllers
In Java mapping, Ice.Object has two methods: ice_id and ice_ids. Ice.ObjectPrx also has ice_id, but ice_ids is not listed. Is there a reason for this? (It is available in IceLibrary.jar in version 3.3, which I currently use).

Also, does ice_ids necessarily return type IDs in some order (i.e. from the most specific type to "::Ice::Object" or vice versa?)

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi Alexey,

    Thanks for pointing out this omission in the Ice manual, we'll fix that.

    The order of the entries in the sequence returned by ice_ids is not specified, so your code should not make any assumptions.

    Regards,
    Mark
  • Alexey RomanovAlexey Romanov Member Alexey RomanovOrganization: Focus MediaProject: Smart card controllers
    Thank you!
  • Alexey RomanovAlexey Romanov Member Alexey RomanovOrganization: Focus MediaProject: Smart card controllers
    Another question: does ice_ids include IDs of facets?
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Another question: does ice_ids include IDs of facets?
    No. Each invocation of ice_ids is directed at a particular facet of the object (the proxy must already be configured for the desired target facet).

    Regards,
    Mark
Sign In or Register to comment.