Is it possible to call functions from Node.js in Rhino, and vice-versa? I'd like to enable communication between Node.js and Rhino somehow, even though they use different Javascript engines. I've set up a node.js server, and I'd like to make the server interact with a Java application that uses the Rhino javascript engine.
If you consider your node process to be a running webserver offering a REST API (e.g. via the "restify" package), and your Rhino process to be a Java web client, then I recommend using the Rhino code to call REST API methods (via Java hooks) on your node webserver process, probably by marshaling objects as JSON. Hope this helps.