Issue Details (XML | Word | Printable)

Key: WEBSOCKET_SPEC-4
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: dannycoward
Reporter: dannycoward
Votes: 0
Watchers: 0
Operations

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

Ambiguous: Can multiple POJO methods be mapped to the same URI ?

Created: 21/Sep/12 08:11 PM   Updated: 04/Dec/12 12:49 AM  Due: 16/Nov/12   Resolved: 04/Dec/12 12:49 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags: v009
Participants: dannycoward


 Description  « Hide

@WebSocketEndpoint("/hello")
public class HelloServer {
@WebSocketMessage
public void processGreeting(String message) { .. }

@WebSocketMessage
public void processCommunication(String message) { .. }
}

both get called ? What order ? Sequentially on same thread ?

Can a POJO annotate multiple methods with the same annotation more than once, for the other annotations too @WebSocketOpen and so on ?



Sort Order: Ascending order - Click to sort in descending order
dannycoward made changes - 21/Sep/12 10:29 PM
Field Original Value New Value
Description @WebSocketEndpoint("/hello")
public class HelloServer {
   @WebSocketMessage
  public void processGreeting(String message) { .. }

 @WebSocketMessage
  public void processCommunication(String message) { .. }
}

both get called ? What order ? Sequentially on same thread ?
@WebSocketEndpoint("/hello")
public class HelloServer {
   @WebSocketMessage
  public void processGreeting(String message) { .. }

 @WebSocketMessage
  public void processCommunication(String message) { .. }
}

both get called ? What order ? Sequentially on same thread ?

Can a POJO annotate multiple methods with the same annotation more than once, for the other annotations too @WebSocketOpen and so on ?
dannycoward made changes - 02/Nov/12 11:53 PM
Due Date 2012-11-09 00:00:00.0
dannycoward made changes - 03/Nov/12 12:42 AM
Assignee dannycoward [ dannycoward ]
dannycoward made changes - 14/Nov/12 01:46 AM
Due Date 2012-11-09 00:00:00.0 2012-11-16 00:00:00.0
dannycoward made changes - 04/Dec/12 12:49 AM
Status Open [ 1 ] Resolved [ 5 ]
Tags v009
Resolution Fixed [ 1 ]