https://issues.apache.org/bugzilla/show_bug.cgi?id=54631
Bug ID: 54631
Summary: @PathParam is not working with @OnMessage
Product: Tomcat 8
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Specification APIs
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
I have defined server end-point as:
@ServerEndpoint(value = "/ws/{mid}/{rid}/{uid}")
When using @PathParam with @OnMessage, values are null. Other annotations like
@OnOpen and @OnClose print values specified in URL.
@OnMessage
public void onTextMessage(@PathParam("mid") Long mid, @PathParam("rid") Integer
rid, @PathParam("uid") Long uid, Session session, String message, boolean pair)
{
log.debug("[TEXT]" + " : " + mid + " : " + rid + " : " + uid + message + "
: " + session.getRequestURI());
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]