Interapp communication under Python[Linux]?

Duncan Grisby duncan-news at grisby.org
Fri Sep 6 21:46:46 CEST 2002


In article <St5e9.25080$w51.7041171 at news2.news.adelphia.net>,
 Robert Oschler <Oschler at earthlink.net> 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:

[...]
>6) CORBA? (yikes!)

CORBA has a reputation for being difficult to use, but it's actually
really easy, and it could well solve all your problems for you. Adding
simple CORBA interfaces to your existing code would add around 50
lines to the C++ and Java code, and about 20 to the Python code, plus
maybe another 10 lines of IDL interface definitions. Obviously if you
need more complex interfaces there will be more code involved, but
minimal support really is minimal.

You can see a simple Python CORBA client and server here:

  http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81254

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the Python-list mailing list