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: dev@tomcat.apache.org
          Reporter: rahul04...@gmail.com
    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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to