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.
source share