Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by afoken (Canon)
on May 12, 2016 at 20:45 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2022-08-10 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?