users@tyrus.java.net

Re: Discrepancy between URIs of programmatic and annotated endpoint

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Sun, 17 Feb 2013 10:28:52 +0100

Hi Arun,

how is this Tyrus issue?

Pavel

On 2/16/13 8:57 PM, Arun Gupta wrote:
> 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
>