Re: JPL and RMI ??
[email protected] Fri, 9 Mar 2001 17:59:31 -0800 (PST)
| Newsgroups | perl.jpl |
|---|---|
| Message-ID | <[email protected]> |
> I need to speak to a java application server wich using j2ee and ejb and ... > from a Perl application running under apache::mod_perl. > Can I use JPL for making call to this server > with RMI or other native java communication interface ??? Probably not but there is an interesting note in the "Perl Utilites Guide" by Brian Jepson (part of the Perl Resource Kit): "Embedding Java in Perl" You may have noticed that all of our examples embed Perl in Java rather than Java in Perl. While it is theoretically possible to embed Java in Perl... there is a bug in Sun's current Java implementation which prevents it from being useful since it dumps core if you try to do any I/O in Java. .. However, even with a native Solaris thread implementation and newer jdk's, I got immediate core dumps. So, this still a a problem. There was talk at one time of creating a Java Apache module to a provide JNI interface but I don't know what the status is now. Other than that, without some kind of intermediary Java app, I don't see how mod_perl could bridge the gap right now. Rgds, -- Charles DeRykus