Hi Tang,
There should be no difference from the end user perspective.
The @Autowired support was added just to make sure Spring
users do not need to switch to using another annotation.
~Jakub
On Aug 5, 2013, at 11:41 AM, Tang Yong <tangyong_at_cn.fujitsu.com> wrote:
> Jakub,
>
> The feature looks really strong!
> After I have looked example, I have a question as following,
>
> @Autowired
> private DateTimeService ds1;
>
> @Inject
> private DateTimeService ds2;
>
> I can understand @Autowired is for Spring world, however,
>
> I want to know for an user the difference between using @Autowired and using @Inject?
>
> Thanks
> Tang
>
> Jakub Podlesak wrote:
>> Hi Robert,
>> There is a new jersey-spring module kindly contributed by Marko Asplund.
>> The module includes Jersey 2/Spring 3 integration. Marko also added
>> a new example [1].
>> It would be great if you can give the example a try and provide feedback.
>> Thanks,
>> ~Jakub
>> [1]https://github.com/jersey/jersey/tree/master/examples/helloworld-spring
>> On Aug 5, 2013, at 12:27 AM, Robert DiFalco <robert.difalco_at_gmail.com <mailto:robert.difalco_at_gmail.com>> wrote:
>>> I'm not sure I understand the impact of Jersey 2.0 on Spring. Cannot they not coexist at all or do I just need to ensure that my Jersey resources and exception mappers are not Spring managed beans and not injected with Spring managed beans?
>>>
>>> I can live with the latter, but I don't want to work on migrating to 2.0 to find out it just plain wont work. I don't use Spring MVC at all. Just transactional, DI, and configuration stuff.
>>>
>>> Any examples out there of Spring and Jersey 2.0 in the same application? Thanks!
>>>
>>> R.
>
> --
> ----------------------
> Tang Yong
> Senior Engineer
> GlassFish Committer (OSGi & OSGi-JavaEE)
> OSGi Alliance Supporter
> Blog: http://osgizone.typepad.com/tangyong/
>
> Nanjing Fujitsu NanDa Software Tec CO.,LTD
> http://www.fujitsu.com/cn/fnst
> Tel: +86-25-86630566-8310
> Fax: +86-25-83317685
> ----------------------
>