Sergey,

OK, let me start taking a look.

Thanks,
Reza


On 6/2/2011 12:15 PM, Sergey Beryozkin wrote:
Hi Reza

On Wed, Jun 1, 2011 at 11:15 PM, Reza Rahman<[email protected]>  wrote:
Sergey,

Excellent! I and other folks in the core Resin team are very willing to help
in whatever capacity is most helpful to speed things along.

Since we are CDI and EJB implementers/expert group members, we probably do
have some technical expertise to offer in the least case.

Having CDI experts being involved in the CDI integration project would
be ideal :-).
So if your team can somehow contribute toward it then it will be welcome indeed.

CXF offers Spring and Blueprint integration with the latter option in
turn offering a better OSGI integration.
It appears that having CDI integration won't actually 'interfere' with
what CXF offers right now and is actually in the interests of CXF,
given that Spring, Blueprint and CDI are kind of mutually exclusive
though perhaps the situation is a bit more complex around combing
Blueprint and Spring in OSGI. Spring + Blueprint + CDI (and EJB) will
likely provide nearly a 100% integration 'cover' going forward.

I guess what may help at this stage is to check how Blueprint
integration has been done. Please check rt/core, rt/frontend/jaxws and
rt/frontend/jaxrs modules, each one contains src blueprint package and
resource (schemas.blueprint and OSGI/blueprint) folders. We will
probably need to introduce similar resources for CDI.

The other thing that we may need to do is to provide CDI-aware service
factories which will manage the lifecycle of CDI beans. For example,
JAX-WS frontend relies on  [1] and JAX-RS - on [2], where [3]
implements [2] for JAX-RS. For some reasons I've found no similar impl
of [1] for JAX-WS, probably just missed it.

I hope Dan, Johan will help us with the advice as well


Thanks, Sergey

[1] http://cxf.apache.org/apidocs/org/apache/cxf/service/invoker/Factory.html
[2 ] 
http://cxf.apache.org/apidocs/org/apache/cxf/jaxrs/lifecycle/ResourceProvider.html
[3] 
http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/BlueprintResourceFactory.java

Just let us know.

Cheers,
Reza


On 6/1/2011 5:54 PM, Sergey Beryozkin wrote:
Hi

On Wed, Jun 1, 2011 at 8:44 PM, Reza Rahman<[email protected]>    wrote:
Hi,

Are there any plans on integrating CXF with CDI (for both JAX-WS and
JAX-RS)? Currently both Jersey and RESTEasy support CDI (RESTEasy also
supports EJB integration).

We have a CXF EJB integration GSOC project underway, I'm hoping we'll
get some progress there.
I was actually thinking about  having CXF JAX-RS with CDI for GSOC 2012.

We do have plans for the JAX-RS CDI integration, simply because JAX-RS
1.1 spec is talking about CDI.
I'll be happy to discuss with anyone who is interested how this can be
done with CXF JAX-RS, we don't need to wait till GSOC 2012.
Realistically, this process will need to be driven by external
contributions in the short to medium term.

Perhaps JAX-WS CDI integration can be of interest as well, so we can
have CXF CDI similar to CXF Blueprint.

thanks, Sergey

Thanks in advance,
Reza






Reply via email to