tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54631] New: @PathParam is not working with @OnMessage
Date Mon, 04 Mar 2013 05:03:35 GMT
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.zx@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message