|
From: Stuart S. <st...@me...> - 2001-04-28 23:35:31
|
Hi Folks,
I'm a jython newbie, and I'm trying to utilize Jython so I can
fiddle with/glue Java code I've
written (and debugged). I have a CORBA server running, and I'm using
CORBA client code
written in Java that I'm calling from the jython command line:
from com.adaclabs.camelot.CORBAImageServices import *
from java.net import *
orbURL = URL("http://localhost");
adapter =
CORBADataAccessAdapter(orbURL.toString(),"EventServiceForSTUARTS","");
mylistener = CORBAClientListenerAdapter();
adapter.InitializeConnection(orbURL,mylistener);
strUID=adapter.ListPatientData("<DICOMQueryPatientRoot/>","ftp://anywhere.com");
---
The Class CORBAClientListenerAdapter prints some stuff to System.err
as well as dumping the incoming event (translated from a CORBA Any) to a
file on the local file system.
The Server side sees the request and responds (which I can observe in
the console for the server),
and the CORBA Event channel receives the message from the server.
I just don't see anything coming in on the client, nor is a file created
(containing an incoming event).
There are multiple threads running when I do this without jython (the
client spins in a loop
and sleeps for a few seconds per iteration of the loop after having made
a request via CORBA),
and the code has been working reasonably well for months (including
others making use of it).
Is there something I need to be doing with threads within the jython
client ?
Are there any particular references in the documentation that might help
?
I really did try to find something in the jython docs, python docs, and
the swing example code in jython,
but I just don't see it...
Thank You,
Stuart
P.S.
I'm aware that there are Python bindings for CORBA, but I'm really more
interested in hooking in
to my Java code, the CORBA stuff is just my latest grind...
|