Jay, On 10/14/05, Jay Strauss <[EMAIL PROTECTED]> wrote: > Hi, > > I wanted to ask if I would head into a dead end trying to use > Inline::Java for what I want to do. > > I have this application that a vendor supplies. They provide a java > api. I'm supposed to build an object with a bunch of callbacks to which > their architecture will invoke, based on various events. > > Their code, launches another thread, which reads a socket, and based on > the data read from the socket, makes calls to the callbacks. > > I'd like to build the callbacks in Perl, and as well as launch the code > from perl. > > Do you see any stumbling blocks? I'm not sure if I've provided enough > detail, if not, I'll gladly provide more.
You can do that With Inline::Java but there is a catch. If you want to allow callbacks from other threads to reach Perl, you must block your Perl script using the Start/StopCallbackLoop methods. See the docs for more info. You can't have you Perl script doing other stuff while callbaks get processed in the background because that would means launching threads in Perl (and probably lots of problems...). Patrick > Thanks > Jay > -- ===================== Patrick LeBoutillier Laval, Québec, Canada