users@jersey.java.net

[Jersey] Re: Jersey's limit with Spring injection

From: Vetle Leinonen-Roeim <vetle_at_roeim.net>
Date: Wed, 25 Jun 2014 18:52:04 +0200

On 04/23/2014 10:43 PM, Michael-O wrote:
> Am 2014-04-17 16:26, schrieb Vetle Leinonen-Roeim:
>> Hi,
>>
>> Take a look at this PR: https://github.com/jersey/jersey/pull/74
>> The magic happens here:
>> https://github.com/jersey/jersey/pull/74/files#diff-47955bde147a4194a7cd4541eceaca32R97
>>
>>
>>
>> This lets Spring itself resolve the injection, instead of detecting the
>> various injection types manually.I added tests for the things I found
>> not to work, and doing it this way seems to work better and inject
>> properly in more cases. Feel free to suggest changes or additional tests.
>>
>
> Hi Vetle,
>
> I have finally tried 2.8-SNAPSHOT, suprisingly handing off to Spring
> works perfectly. Here is my modified version [1] of the Spring module.
> I'd like to see the same multi-context support as in the DispatcherServlet.
> Thanks,
>
> Michael
>
> [1] http://pastebin.com/Y07F1s1u

Great!

Does it work out of the box for you now with the latest version of
Jersey? If there are any other changes that are required, I'm sure an
issue and pull-request would be appreciated.

Regards,
Vetle