Interapp communication under Python[Linux]?
Scherer, Bill
Bill.Scherer at VerizonWireless.com
Fri Sep 6 13:36:48 EDT 2002
On Fri, 6 Sep 2002, Robert Oschler wrote:
> My Python app will talk to 3 or 4 modules written in Java and C/C++.
> Fortunately I have the source for the Java and C/C++ modules and I have
> experience in both languages. Currently the external modules have no
> provision for being accessed outside of the process they are running as. So
> I'm wondering what the best protocol would be used to "glue it all
> together". There a dizzying array of possibilities:
>
> 1) Have everybody talk to each other via SOAP (web services).
> 2) Have everybody talk to each other via XML-RPC (Don't know much about this
> method).
> 3) Use Boost's SWIG interface for C++ to link the C/C++ modules to Python.
> How to link to Java in the same manner?
> 4) Use "sockets" and my own custom protocol for everybody.
> 5) Code in Jython instead and use various methods above to talk to C/C++
> modules from Jython app.
> 6) CORBA? (yikes!)
>
> So as I said, a lot of ways to get things done. I'd like to hear from those
> of you that have actually done a lot of cross-app communication with Python
> on what your experiences have been, and the pros and cons you encountered.
<posted and mailed>
Robert -
Have a serious look at Spread (http://www.spread.org). There's a
Python module for it on python.org, and I believe the Java
interface is included with the code from spread.org. I've not
used Spread from Java, but I have a bunch of different Python
processes on half a dozen or so machines (Both Linux and Win2k),
all communicating via spread. It's quite simple to use.
The spread server daemon has been up since I started it, way back
when the first Python spread module came up. It's stability is,
so far, as good as the linux box upon which it runs.
HTH,
Bill
--
Bill.Scherer at Verizon Wireless
RHCE 807101044903581
More information about the Python-list
mailing list