当前位置: 动力学知识库 > 问答 > 编程问答 >

jsf - Is it possible to integrate Node.js in a java web application for some functionalities like for chat functionalities?

问题描述:

I want to integrate node.js chat application using socket.io framework to the JSF web application running on JBoss server. Can you please give any sugessions like how to do it.

网友答案:

Have two servers running on the same domain but on different ports, say node.js on 8888 and JBoss on 8080. In an HTML page on JBoss, have a regular hyperlink pointing to chat server on yourservername:8888/chaturl, and on chat exit, return to your JBoss app.

Or use a frame if you need to embed the chat app to your page in JBoss. But rather not frames.

分享给朋友:
您可能感兴趣的文章:
随机阅读: