Python <-> Java RMI

B

Birgit Rahm

Hello,
is there a possibility to connect to RMI Middleware from Python or
alternativ to Java?
 
A

Alex Martelli

Birgit said:
is there a possibility to connect to RMI Middleware from Python or
alternativ to Java?

As far as I know, "yes but" only with Jython, not with CPython.


Alex
 
D

Diez B. Roggisch

Hi,
is there a possibility to connect to RMI Middleware from Python or
alternativ to Java?

As Alex mentioned, jython works (very well, indeed). However, all
standarized RPC methods should work. For example SOAP and CORBA (fnorb is
usable for python, but I didn't check that out for 2 years now).

AFAIK RMI and CORBA want to converge, so maybe there is a slim chance of RMI
exposed services beeing callable by CORBA-clients, and thus python. But I
wouldn't bet on that.

Diez
 
D

Duncan Grisby

Diez B. Roggisch said:
As Alex mentioned, jython works (very well, indeed). However, all
standarized RPC methods should work. For example SOAP and CORBA (fnorb is
usable for python, but I didn't check that out for 2 years now).

AFAIK RMI and CORBA want to converge, so maybe there is a slim chance of RMI
exposed services beeing callable by CORBA-clients, and thus python. But I
wouldn't bet on that.

CORBA clients can, in theory, connect to RMI servers, but there are
two problems. First, RMI over IIOP requires CORBA valuetypes, and
none of the Python CORBA implementations support valuetypes yet. The
current development version of omniORBpy does support valuetypes, but
it hasn't been tested with RMI yet.

The other problem is that the mapping from RMI interfaces to CORBA is
unpleasant in the extreme, and very difficult to program with.

By far the best option is to use CORBA directly at the Java level.

Cheers,

Duncan.
 
B

Birgit Rahm

By far the best option is to use CORBA directly at the Java level.

Unfortunatly, I have only the RMI Middleware presented by an existing
server. I only write on the client program. Most of the classes are written
in Python (before I knew, that I have to connect to RMI). So that I had to
find now a way to connect.
Birgit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,915
Members
47,456
Latest member
JavierWalp

Latest Threads

Top