On May 20, 2010, at 2:29 PM, Martin Giese wrote:
> On 05/20/2010 02:23 PM, Edwin Shin wrote:
>> See my last few emails about testing with init-params and Pavel &
>> Paul's responses:
>>
>> https://jersey.dev.java.net/servlets/BrowseList?list=users&by=thread&from=2947919
>>
>>
> I saw those (after my original post), thank you! But it seems that
> those inject the config into the constructor for resource objects, and
> not for the application object. I tried doing it for the Application
> object,
>
> class MyApp extends Application
> public MyApp(@Context ServletConfig sc) {
> ...
> }
> }
>
> but the application object is constructed with the no-argument
> constructor, so that didn't help.
>
What version of Jersey are you using?
There are unit tests which exercise this particular functionality and
they are not failing.
Paul.