Archived

This forum has been archived. Please start a new discussion on GitHub.

Dynamic Interface Discovery

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

  • mes
    mes California
    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
  • Hi Mark,

    Thanks for your answer, that clearly clarifies things :)

    Cheers,
    Cyrille