Project: Tomcat
Bug 54631 @PathParam is not working with @OnMessage
Reported: 2013-03-04 05:03:35 | Status: resolved fixed

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()); }

Files changed in fix:
test/org/apache/tomcat/websocket/pojo/TestPojoMethodMapping.java