Archived
This forum has been archived. Please start a new discussion on GitHub.
To make dynamically loaded programs
Janggwan
in Help Center
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.
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.
0
Comments
-
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?0
