Is there an example for utilization of WebSockets in JBoss AS7?

三世轮回 提交于 2019-12-10 12:35:15

问题


Is there somewhere an example that utilizes this websocket implementation for JBoss Application Server > 7.1.2 https://github.com/mikebrock/jboss-websockets

I can't get it to work with the brief description thats there.

I've already setup the WebSocketServlet and bound it to an address and then when I'm trying to connect to the Servlet from the Browser (newest stable Chrome) over ws:// it fails (405 access not allowed) and over wss:// nothing happens , it stays in the connecting state and does not throw any errors on client or server side.

And if there's another way to implement websocket servlets I would be even happier. I also saw that you can get it running with Jetty described in here:
http://golovnin.blogspot.de/2012/04/jboss-7-and-websockets.html,
but I'd rather do it the other way.


回答1:


I've made a demo app here: https://github.com/eis/jboss-websocket-demo

It's a simple chat.

It uses JBoss stuff only, not Jetty or other workarounds. Like readme says, you need to enable native jbossweb.



来源:https://stackoverflow.com/questions/13812087/is-there-an-example-for-utilization-of-websockets-in-jboss-as7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!