• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java calling perl  RSS feed

 
bawang bawang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Ryan McGuire
Ranch Hand
Posts: 1143
9
  • Mark post as helpful
  • send pies
  • 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 ]
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depending on the situation, Runtime.exec() might also work....
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!