<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Maurice Ling wrote:
<blockquote cite="mid4190A2DE.6040505@acm.org" type="cite">Hi,
<br>
<br>
I have read that this had been asked before but there's no satisfactory
replies then.
<br>
<br>
I have a module (pA) written in python, which originally is called by
another python module (pB), and passes a python object (pO) to pB. Now
I require pA to be called in a java class (jC) and pass pO into jC. As
pA uses non-python modules, I am not able to use Jython on this.
<br>
<br>
Are there any way out in this?
<br>
<br>
Thanks in advance.
<br>
<br>
Maurice
<br>
</blockquote>
How about:<br>
<br>
<ul>
<li>XMLRPC</li>
<li>SOAP</li>
<li>a messaging queue of some sort (pA or pB - I'm a little unclear
on
which is the starting point - could put pO in a message queue and jC
could pick it up)</li>
<li>serialize the Python object to disk in an intermediate format
(say, XML) and have the Java process pick it up</li>
<li>CORBA</li>
</ul>
Without more details, and some clarification, that's the best I can
do. Are you sure you meant to say pA is called by pB, or is it the
other way around? If pA is being called, it really can't pass pO to
pB, unless you've got a callback setup.<br>
<br>
<br>
Jeremy Jones<br>
</body>
</html>