Hello everyone, I am writing Program for making connection between Node.js and server.java. My client is in nodejs and Server is in Java...How should I go..any suggestion ?
As shift66 says node.js is server side, however it can be a client to a java service, so acting as a controller between a java service and a front-end UI.
This can be done in any number of ways and depends on your specific use cases. However two of the most common ways to do this would be:
Via http using node.js to create a REST request to an endpoint exposed by the Java service.
Or using a messaging protocol such as AMQP and a node.js library, for example node-amqp to send/receive messages from a message queue, using an RPC pattern.
However as I said it depends on your use cases.