Thanks Paul,
Yes that's the same issue. Ok, for now I will use static methods to share the instances, and wait for a future resolution.
Chris.
-----Message d'origine-----
De : Paul.Sandoz_at_Sun.COM [mailto:Paul.Sandoz_at_Sun.COM]
Envoyé : lundi 14 juin 2010 18:05
À : users_at_jersey.dev.java.net
Objet : Re: [Jersey] Jersey injection into spring managed beans
Hi,
I think you are running into a similar issue to:
https://jersey.dev.java.net/issues/show_bug.cgi?id=469
Namely currently Jersey does not integrate with the bean post
processor and Jersey only works with Spring for JAX-RS root resource
and provider classes (after it has obtained a reference from Spring).
I think this is something that should be possible to fix since we now
have a mechanism in place that used for EJB and CDI integration that
could also be with a Spring bean post processor. The only thing we may
have to watch out for is when Spring initializes singletons (it may do
it before the Jersey servlet is initialized, in which case we will
need to introduce a Jersey context listener).
Paul.