Awesome.
Thanks for the quick fix.
-Arul
Paul Sandoz wrote:
> Arul Dhesiaseelan wrote:
>> Something like shown below won't work even in 0.8?
>>
>> @Path("singleton")
>> @Singleton
>> public static class SingletonResource {
>> @Context
>> HttpServletRequest r;
>>
>> public SingletonResource(@Context HttpServletRequest r) {
>> this.r = r;
>> r.getSession().setAttribute("test", "true");
>> }
>>
>> @ProduceMime("text/plain")
>> @GET
>> public String get() {
>> //return r.getPathInfo();
>> return (String)r.getAttribute("test");
>> }
>> }
>>
>
> The above functionality for constructor parameters on singletons is
> supported in the latest build.
>
> Paul.