Hi, I have developed a Perl wrapper for Java code using Inline::Java. It is a client-server model, where both the client and server are in java.I have used the Inline::Java to extend the java client functionality to Perl too. So now a Perl client can talk to a java Server. I am also using Inline::Java callback to receive callbacks from my application server. One of the issues I faced during this process was that I could not run two Perl scripts at the same time, one waiting for callbacks and another perl client script invoking my application server. The error I got was: "Could not start Inline Java server on port 7890" To resolve this, I did SHARED_JVM =>1. So now in my script MY::Script.pm I have use Inline ( Java => 'STUDY', STUDY => [], CLASSPATH=> $ENV{CLASSPATH}, SHARED_JVM=>1, );
I have this code in my test script: BEGIN { use_ok(MY::Script) }; included with my Perl module. However, when I do 'make test' the script hangs, and I usually have to kill java.exe for it to work This problem occurs only with SHARED_JVM => 1, If I comment it out, 'make test' succeeds. This problem occurs only on Windows XP. On Solaris 10 there is a little delay, but the test succeeds. I don't know why this is happening. I have installed Inline::Java without the JNI. Do you think this issue will be resolved if JNI is used? Any help would be highly appreciated. Thanks, Sharmishtha __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com