Is it possible to integrate Node.js in a java application for some functions, for example, for chat functions?

I want to integrate the node.js chat application using the socket.io framework into a JSF web application running on a JBoss server. Can you give any advice on how to do this.

+4
source share
1 answer

Two servers running in the same domain but on different ports, say node.js on 8888 and JBoss on 8080. The HTML page on JBoss has a regular hyperlink pointing to the chat server on yourservername:8888/chaturl , and the chat output Return to your JBoss app.

Or use a frame if you need to embed a chat application on your page in JBoss. But rather, not frames.

+2
source

Source: https://habr.com/ru/post/1479334/


All Articles