Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: dannycoward
Reporter: arungupta
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Discrepancy between URIs of programmatic and annotated endpoint

Created: 17/Feb/13 03:22 PM   Updated: 21/Feb/13 12:30 AM   Resolved: 21/Feb/13 12:30 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags: v013
Participants: arungupta and dannycoward

 Description  « Hide

There is a discrepancy between programmatic and annotated endpoint. The following two code work in GlassFish b76:

public class MyEndpoint {


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 any such requirement in programmatic endpoint.