To make dynamically loaded programs

JanggwanJanggwan Member Janggwan ImOrganization: KAISTProject: Internet of Things architecture
I want to multiplex method invocation requests to my own policy not to the fixed slice definition.

Is it possible ?

For example,

interface myInterface {
string a(string arg1);
string b(string arg1);
};

Whether a client invokes a() or b(), the invocation should be processed by a single routine. It makes the routine can dynamically load the class (by classLoader in Java, for example) and invoke methods.

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    You can intercept on the server side any request on any interface using a blobject (look at Ice.BlobjectAsync or Ice.Blobject) and the streaming interface. Once you have intercepted the invocation you can manually extract the operation parameters using an InputStream (See Streaming Interface for details on that). You can then marshal the results using an OutputStream.

    All the same, I don't recommend doing this. It will be fragile and error prone. Why do you want to do that?
  • JanggwanJanggwan Member Janggwan ImOrganization: KAISTProject: Internet of Things architecture
    Thank you for your explanation

    Thank you for your explanation.
    I am trying to build a service framework on which service description is input and provides the service according to the service description.
Sign In or Register to comment.