Use Java code from a Node.js server

I have a heavy Java application that does some calculations. I want my Node.js application to use that application. How can I do this?

You can expose the Java calculation as a web service and make an Ajax call to it.

I think you need nodejs addons