Hi Andriy
On 09/10/14 15:25, Andrei Shakirin wrote:
Hi Sergei,

I am curious how Jersey and Resteasy fulfil this requirement.
Are they rely on some container specific code for EJB integration?

I'd say so, they will likely have the container specific bootstrapping mechanism in place. May be Bill can confirm :-) That is why it is not really possible to ship a generic CXF EJB integration code but a single invoker.

We can refer people to TomEE for a concrete CXF EJB integration in action and consider shipping a single file really, an EJB aware invoker that other integrators might want to use when doing their own CXF JAX-RS EJB integrations.

Cheers, Sergey

Regards,
Andrei.

-----Original Message-----
From: Sergey Beryozkin [mailto:sberyoz...@gmail.com]
Sent: Donnerstag, 9. Oktober 2014 15:20
To: users@cxf.apache.org
Subject: Re: EJB integration for JAX-RS2.0 in CXF

Hi Andy
On 09/10/14 13:55, Andy Gumbrecht wrote:
I don't want to hijack the thread, but feel like I need to mention
Apache TomEE.

no problems at all, welcome :-)
The 1.7.x version has this set-up out of the box, and provides a
lightweight app-server that includes OpenEJB (EJB 3.1) and CXF
(2.6.14) The trunk version (2.0.0-SNAPSHOT)  has been upgraded to use
CXF 3.x

May save you some work.
I did refer to TomEE in my original response in this thread and happy to refer 
to
TomEE whenever I can. TomEE is a top complete container.

The thing is we start seeing non TomEE users thinking of integrating CXF into
their containers. Hence it might make sense to offer something pretty light-
weight at a CXF level. This is something Andriy did around CDI so that say
Tomcat users can have CDI utilized.

To be honest I'm not sure if it is even feasible to offer something pretty 
light-
weight at the CXF level alone, if it were then I'd say it would be limited to
shipping some EJB aware invoker only...The rest would likely have to be done at
the specific container level...

Thanks, Sergey


Andy.

On 09/10/2014 13:51, Andrey Redko wrote:
Hi,

Following Sergey's e-mail, it is true,  CXF does not have support for EJB
   resource classes yet.
The work has been done to support CDI 1.1. That's being said, if the
EJB container integrates with CDI container (it should),  the CXF can
be used and is going to work as expected.
Thanks.

Best Regards,
      Andriy Redko

On Thu, Oct 9, 2014 at 7:37 AM, Sergey Beryozkin
<sberyoz...@gmail.com>
wrote:

Hi

On 09/10/14 10:06, Bin Zhu wrote:

Hi,
Does current CXF support EJB based JAX-RS 2.0 application? If yes,
is there requirement for EJB container? any additional
configuration needed for application server? Thanks.


Spec for EJB support:

In a product that supports EJBs, an implementation MUST support the
use of stateless and singleton session beans as root resource
classes, providers and Application subclasses.

   No, CXF does not have its own EJB integration project in place
yet. CDI
- yes, Andriy Redko did it. TomEE has it AFAIK.

There was a GSOC project few years back dedicated to it but it was
not completed.

Might be worth having a light-weight CXF JAX-RS 2.0 EJB integration
project as well, that would have CXF offering a complete integration
support...

Cheers, Sergey





Reply via email to