Thread

Posted on Thu Aug 24 22:02:57 2006 by smthames
Using tomcat JVM
Does anyone know if you can use the SHARED_JVM option to use the JVM that is already running under tomcat? I just started using Inline::Java, today, and was successful in getting perl to use classes in a JAR created under windows using NetBeans. My tomcat and perl are running under Fedora Core 4 linux using the RPMs which means I'm not using the Sun JVM. Any ideas?
Direct Responses: 2837 | Write a response
Posted on Fri Aug 25 04:15:29 2006 by patl in response to 2832
Re: Using tomcat JVM
I know you can do it because I applied patches to Inline::Java to allow that. Problem is I have never tried since I don't know Tomcat that well.

To start I think you have to load InlineJavaServer.jar and instantiate InlineJavaServer in a separate thread. That will create listening server that the Perl code should then be able to connect to using SHARED_JVM=1 and START_JVM=0.
Write a response