Hello,
I have a legacy code which is written in Java and has java Remote method invocations which are made by client
for demonstrating this i have created a sample code with setup steps you can find it at location ::
Apigee RMI-Server and Apigee RMI Client
I want to know if apigee can support the RMI in java or not.
Solved! Go to Solution.
Well, you can't configure RMI from the UI. If you want to make an RMI call then it would have to be done from inside of a java-callout policy. This also means that the use case for this should be an RMI call to some other surface based on the execution of an http request. Now, that request doesn't need to be REST:ful necessarily.
To test this simply you could just configure an api proxy as a no-target (simply a proxy that doesn't talk to a backend service). Then in the preflow add a javacallout policy that references a class. This class needs to implement Execution (like the java callout examples) but can also do any RMI logic you like as well. Now, if this is a long running RMI-stream then this isn't ideal, obviously, inside of apigee, but this is how I think it would work.
Is that clearer?
Thanks,
/geir