Accessing the Java RMI API from a Python Program

I have a Python program that needs to access the Java RMI API from a third-party system in order to get some data.

I have no control over a third-party system, so it MUST be run using RMI.

What should be my approach here? I have never worked with RMI using Python, so I lost a bit of what I have to do.

Thanks in advance!

+4
source share
2 answers

How about a small part of the middle part of Java that you can talk to through REST, and the part, in turn, can be removed from the API?

+2
source

You will have a very difficult time, as I could imagine. The serialization of RMI and Java is very specific to Java. I don't know if anyone tried to implement this in python (I'm sure google knows), but it would be best to find an existing library.

As a side, I would look at how to find RMI in some part of the client side java interface (maybe this is some kind of python library ↔ java bridge?). Or maybe you can run your python in Jython and use the underlying jvm to process RMI materials.

+2
source

All Articles