Home Help Center

Dynamic Interface Discovery

cyrille_favreaucyrille_favreau Member Cyrille FavreauOrganization: ...Project: ...
Hi,

Is there a way to programmatically discover an ICE interface from a generic proxy reference. In other words, is there an equivalent to CORBA's DII (Dynamic Invocation Interface) in ICE.

Regards,
Cyrille

Comments

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

    You can invoke ice_id on a generic proxy to discover the remote object's most-derived interface. This operation returns a string in the form ::Module::Interface. Ice does support a dynamic invocation and dispatch API but does not provide an equivalent to CORBA's interface repository (IFR), so programs require knowledge of the types or some proprietary way to obtain type information dynamically.

    Let us know if you have any other questions.

    Regards,
    Mark
  • cyrille_favreaucyrille_favreau Member Cyrille FavreauOrganization: ...Project: ...
    Hi Mark,

    Thanks for your answer, that clearly clarifies things :)

    Cheers,
    Cyrille
Sign In or Register to comment.