I have a Python program that needs to access a Java RMI API from a third party system in order to fetch some data.
I have no control over the third party system so it MUST be done using RMI.
What should be my approach here? I have never worked with RMI using Python so I'm kind of lost as to what I should do..
Thanks in advance!
How about a little java middle ware piece that you can talk to via REST and the piece in turn can to the remote API?
You're going to have a very hard time i would imagine. RMI and Java serialization are very Java specific. I don't know if anyone has already attempted to implement this in python (i'm sure google knows), but your best bet would be to find an existing library.
That aside, i would look at finding a way to do the RMI in some client side java shim (maybe some sort of python<->java bridge library?). Or, maybe you could run your python in Jython and leverage the underlying jvm to handle the RMI stuff.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With