Issue Details (XML | Word | Printable)

Key: WEBSOCKET_SPEC-144
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: dannycoward
Reporter: arungupta
Votes: 0
Watchers: 0
Operations

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

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:

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



Sort Order: Ascending order - Click to sort in descending order
dannycoward made changes - 21/Feb/13 12:30 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee dannycoward [ dannycoward ]
Tags v013
Resolution Fixed [ 1 ]