users@tyrus.java.net

Discrepancy between URIs of programmatic and annotated endpoint

From: Arun Gupta <arun.p.gupta_at_oracle.com>
Date: Sat, 16 Feb 2013 11:57:35 -0800

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