Parameter Passing with in URL
<p>Have a question about passing number of values in url.
 I get HTTP status 405 method not allowed.. How can i pass all those variables    to this method ? Any help appreciated.. </p>

<pre><code>@POST
@Path("/{message}/{messager_name}/{messager_last_name}/{messager_id}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public void addMessage(@PathParam("message") String message, @PathParam("messager_name")String messager_name, @PathParam("messager_last_name")String messager_last_name ,@PathParam("messager_id") long messager_id){

    new MessageService().addMessage(message, messager_name, messager_last_name, messager_id);
}
</code></pre>