users@glassfish.java.net

Glassfish + Grizzly - Websocket Issue !!

From: <forums_at_java.net>
Date: Thu, 28 Jul 2011 03:08:51 -0500 (CDT)

Hi all,

I have been trying to test out Websocket feature of Glassfish 3.1 but then i
got stuck !! I tried out the following examples

1)
http://weblogs.java.net/blog/spericas/archive/2010/10/14/more-web-sockets-and-html5-glassfish

and,

2)http://java.dzone.com/articles/creating-websocket-chat?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+zones%2Fcss+%28CSS+Zone%29

In both the examples , when implemented i got the application working, but
the problem is i did not get the server implementation part of the websocket.
I mean in both the examples the Servlet init method registers the app in the
websocket engine , say, in case of the chat example[2nd link]
,ChatApplication class has been registered in the websocket engine , but the
override (annoted) methods [WebSocket *createSocket*(WebSocketListener...
listeners) and *onMessage*(WebSocket socket, DataFrame frame)] in the
ChatApplication class seems to have no effect (meaning ,trace doesn't get
into those method the application runs even after commenting those methods..)



--
[Message sent by forum member 'kpmadhan']
View Post: http://forums.java.net/node/826946