• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java calling perl

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any one knows how you can have Java code/EJB code call a Perl module? The website shows how to do it by embedding perl into java then into a .jpl file but that is not what I had in mind. We have a few perl modules here and I would like to be able to just call it as a separate module and not have to embed it in my Java code.

Any ideas or links would be truly appreciated
 
Bartender
Posts: 1205
22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm just brainstorming here; I don't know if this will work.

1. Try embedding Perl in a C/C++ JNI DLL.

2. Could you implement a CORBA or other generic RMI / ORB server in Perl? You could cut way down on the initial complexity by having it handle only certain types of requests.

3. Oh wait... there are already Web servers that can serve up Perl scriptlets. Just have your EJBs call that server. This assumes that the requests are serializable into HTTP requests.

Ryan
[ June 16, 2005: Message edited by: Ryan McGuire ]
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depending on the situation, Runtime.exec() might also work....
 
reply
    Bookmark Topic Watch Topic
  • New Topic