users@jersey.java.net

Multiple _at_PathParam

From: Julio Faerman <jfaerman_at_gmail.com>
Date: Thu, 24 Jul 2008 13:53:12 -0300

Hello,

I am trying to create a URL with 2 @PathParam, but it is not working.
With 1 it works fine.
The code is simple:

@ProduceMime({"application/xml","application/json"})
@Path("/someEntity/{entityId}/otherEntity/{otherId}")
public class EntityResource extends CebusResource{

       @GET
       public Entity getEntity(@PathParam("{entityId}") long
entityId,_at_PathParam("{otherId}") long otherId){
               System.out.println(entityId +" - "+otherId );
               return new Entity();
       }
}

I am getting the value 0 in both parameters. With only one it works
fine. I am using 0.8-ea.
Is this a issue or am i doing something wrong?