On Apr 11, 2008, at 10:32 AM, Jean Aurambault wrote:
>>
>> In my example i have working per-request managed Spring resources
>> (only with an empty constructor) but i had to set the scope to
>> "prototype". For the PerRequestResource the name value was always
>> set correctly and the other field value was always reset.
>>
>
> My mistake, I hadn't defined the scope correctly in the
> applicationContext.xml... So I don't need to redefine the
> getInstance() as you mentioned Martin.
> I have noticed weird behavior (eg. two instanciation instead of
> one) when mixing jersey annotation (@PerRequest, @Singleton) and
> spring scope (prototype, singleton).
Does not surprise me given the state of my prototype code!
> Unfortunately, I haven't time right now (I have to deliver ;-) ...)
> to play with it and try Martin's branch.
>
OK. I am hopeful for 0.8 latest and stable builds we will have a good
and well tested solution for you.
Paul.