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 <[email protected]>
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
>
>