title: Rest reading a long using @QueryParam always returns 0 when using @POST
body: <p>I send the following ajax call to my JBoss server (using jQuery):</p>
  
  <pre><code>$.ajax({
    type: "POST",
    url: "http://localhost/services/v1/online/123/abc",
    data: {
      "status": 100
    },
    contentType: "text/xml; charset=\"UTF-8\"",
    success: function(data, textStatus, jqXHR) { },
    error: function( jqXHR, textStatus, errorThrown ) { },
    dataType: "xml"
  });
  </code></pre>
  
  <p>My Java code looks like this (@ApplicationPath and class- @Path is setup correctly so the following is triggered):</p>
  
  <pre><code>@POST
  @Path("/{docId}/{secId}")
  @Produces(MediaType.TEXT_XML)
  public String getSectionAccess(@PathParam("docId") String docId,
                                 @PathParam("secId") String secId,
                                 @QueryParam("status") long timeInMS) {
    System.out.println(timeInMS);
  }
  </code></pre>
  
  <p>My problem is that the timeInMS always returns the value 0. If I use @GET instead of @POST then timeInMS equals 100 as expected.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>The following code:</p>
  
  <pre><code>ResteasyProviderFactory.getContextData(HttpServletRequest.class).getParameter("status");
  </code></pre>
  
  <p>shows me that the result of status is "100" (a string but can be converted to a long)... Why is the value not inserted in the timeInMS when using @POST (or @PUT for that matter)?</p>