There is a discrepancy between programmatic and annotated endpoint. The
following two code work in GlassFish b76:
@WebSocketEndpoint(value="/websocket")
public class MyEndpoint {
AND
public class MyServerConfiguration extends DefaultServerConfiguration
implements ServerEndpointConfiguration {
public MyServerConfiguration() {
super(MyEndpoint.class, "websocket");
}
But annotated endpoint takes the URI as "/websocket" and the
programmatic endpoint takes the URI as "websocket".
The spec requires annotated endpoint URI to start with / but could not
find anything around (may be I missed) programmatic endpoint.
Arun
--
http://twitter.com/arungupta
http://blogs.oracle.com/arungupta