users@jersey.java.net

PathParam not injected in case of fields jersey 1.1.4

From: Herak Sen <HSen_at_vertrax.com>
Date: Mon, 23 Nov 2009 09:53:50 -0500

Hi,

If I declare the resource as managed bean then pathparams declared as fields are not set.
It works if do not make it a managed bean or if pathparams are declared as method parameters.

@ManagedBean
@Path("testfp/{fp}/sub")
public class TankRS {

        @PathParam("fp")
        private String fp;

        @GET
        public String testMethoth() {
                System.out.println(fp == null);
                return fp;
        }

}

I tried it with jersey 1.1.4 and glassfishv3 build 74.

It used to work with jersey 1.1.3

Herak