Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Dazed/Confused from previous posts on how to call Java method from Perl

by afoken (Chancellor)
on May 12, 2016 at 20:45 UTC ( [id://1162894]=note: print w/replies, xml ) Need Help??


in reply to Dazed/Confused from previous posts on how to call Java method from Perl

A slightly different, very generic way of doing it:

Define and implement an interface in both languages, communicate using the interface. You probably want to use a client-server model, but peer-to-peer may also work.

For communication, Unix domain sockets and TCP/IP sockets (usually via localhost) are quite easy to use from many languages. (Ab)using HTTP is also an option. To encode data, consider using JSON, it's lightweight and has encoders and decoders implemented in about 60 languages. YAML or XML may also be useful. There are also at least two spec for JSON-based Remote Procedure Calls.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re: Dazed/Confused from previous posts on how to call Java method from Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1162894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found