Python <-> Java RMI

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Birgit Rahm

    Python <-> Java RMI

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

    --

    Mit freundlichen Grüßen / best regards
    Birgit Rahm



  • Alex Martelli

    #2
    Re: Python &lt;-&gt; Java RMI

    Birgit Rahm wrote:
    [color=blue]
    > is there a possibility to connect to RMI Middleware from Python or
    > alternativ to Java?[/color]

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


    Alex

    Comment

    • Diez B. Roggisch

      #3
      Re: Python &lt;-&gt; Java RMI

      Hi,
      [color=blue]
      > is there a possibility to connect to RMI Middleware from Python or
      > alternativ to Java?[/color]

      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

      Comment

      • Duncan Grisby

        #4
        Re: Python &lt;-&gt; Java RMI

        In article <bn0at8$rhpra$1 @ID-111250.news.uni-berlin.de>,
        Diez B. Roggisch <nospam-deets@web.de> wrote:
        [color=blue]
        >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.[/color]

        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.

        --
        -- Duncan Grisby --
        -- duncan@grisby.o rg --
        -- http://www.grisby.org --

        Comment

        • Birgit Rahm

          #5
          Re: Python &lt;-&gt; Java RMI

          > 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


          Comment

          Working...