cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morten <mortench2...@yahoo.dk>
Subject Re: Javax.inject/CDI injection in CXF JAX-RS ?
Date Mon, 26 Apr 2010 11:38:05 GMT
Hi Sergey,

Thanks for the answer. As for complete JAX-RS 1.1 complience and dependency injection, I think
there are some changes due in JAX-RS 2.0 that you might want to be aware of. They where recently
advocated by me but well received by Sun so far (https://jersey.dev.java.net/issues/show_bug.cgi?id=517)

Right now I would be more interested in a practical approach in how to inject weld/cdi managed
resources into CXF JAX-RS own classes then full complience (this should be much simpler then
a complete integration).

Cheers,
Morten

--- Den man 26/4/10 skrev Sergey Beryozkin <sberyozkin@gmail.com>:

> Fra: Sergey Beryozkin <sberyozkin@gmail.com>
> Emne: Re: Javax.inject/CDI injection in CXF JAX-RS ?
> Til: users@cxf.apache.org
> Dato: mandag 26. april 2010 12.52
> HI
> 
> On Mon, Apr 26, 2010 at 2:22 AM, Morten <mortench2004@yahoo.dk>
> wrote:
> 
> > I am currently using Jersey together with CDI(Weld)
> and is interested in
> > exploring a switch to CXF JAX-RS and the big question
> is if I can get it to
> > work with CDI/Weld so that weld managed beans can be
> injected into CXF
> > managed classes using standard javax.inject annotation
> ?
> >
> > Unfortunately, I could find no documentation about
> interactions with any
> > dependency injection managers except a bit about
> Spring. What about guice
> > and weld? Weld in particular is interesting because it
> is the default
> > dependency injection manager in newest glassfish AND
> jboss and supports the
> > new java standards for JEE 7 regarding
> CDI/javax.inject!
> >
> >
> Unfortunately JAXRS 1.1 is not completely supported yet in
> CXF JAXRS.
> Specifically, its EE requirements have not been met.
> Interesting, just today, I've got an access to a JAXRS 1.1
> TCK (thanks to
> Dan) thus it will provide an extra motivation for me to
> start planning the
> work for CXF JAXRS to become JAXRS 1.1 compliant.
> 
> Note, AFAIK, Red Hat's RestEasy has also been integrated
> with CDI/Weld - so
> you might want to give it a try.
> 
> It is unlikely I will get the time to work on Guice
> integration (communnity
> contributions will be welcomed). As far as CXF JAXRS and
> CDI/Weld
> integration is concerned, I think it will be a good
> integration feature for
> CXF, and it will hopefully help popularizing the CDI effort
> and Weld in
> particular.
> 
> The only thing is that I will most likely have some limited
> time only for
> working on enhancing CXF JAXRS in the nearest future at
> least - I'll do
> mantain and work on it but on my own time really - so some
> community effort
> will be welcomed :-), ex, we can create a new integration
> module and work
> out what needs to be done for CDI/Weld integration to
> succeed, etc.
> 
> cheers, Sergey
> 
> 
> > Cheers,
> > Morten
> >
> >
> >
> >
> >
> 




Mime
View raw message