Hi Herek,
You have found a bug. The problem is the interceptor that is used to
inject assumes that the class to inject on is always a singleton,
which is correct for EJBs but not for managed beans.
Currently investigating a fix...
Paul.
On Nov 23, 2009, at 3:53 PM, Herak Sen wrote:
> 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