cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-6221) CDI integration extension does not detect annotations on Karaf
Date Wed, 18 Feb 2015 11:36:26 GMT

    [ https://issues.apache.org/jira/browse/CXF-6221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325733#comment-14325733
] 

Sergey Beryozkin edited comment on CXF-6221 at 2/18/15 11:36 AM:
-----------------------------------------------------------------

Hi, I've asked for a clarification re RequestScoped. 
If it were to be supported then it would definitely be a more advanced and IMHO a different
issue as supporting it would affect both OSGI and non OSGI deployments. 

We'd most likely have to ensure that these RequestScoped beans are associated with CDI aware
org.apache.cxf.jaxrs.lifecycle.ResourceProvider implementations that would delegate to CDI
to create an instance per every request (Similarly to SpringResourceFactory class that can
be used to support advanced Spring scopes).
I agree with Andriy that we need to make sure first it just works as expected in simpler cases
(the resource bean is a singleton) 

Thanks, Sergey


was (Author: sergey_beryozkin):
Hi, I've asked for a clarification re RequestScoped. 
If it were to be supported then it would definitely be a more advanced and IMHO a different
issue, we'd most likely have to ensure that these RequestScoped beans are associated with
CDI aware org.apache.cxf.jaxrs.lifecycle.ResourceProvider implementations that would delegate
to CDI to create an instance per every request (Similarly to SpringResourceFactory class that
can be used to support advanced Spring scopes).
I agree with Andriy that we need to make sure first it just works as expected in simpler cases
(the resource bean is a singleton) 

Thanks, Sergey

> CDI integration extension does not detect annotations on Karaf
> --------------------------------------------------------------
>
>                 Key: CXF-6221
>                 URL: https://issues.apache.org/jira/browse/CXF-6221
>             Project: CXF
>          Issue Type: Bug
>          Components: Integration, JAX-RS
>            Reporter: Krystian Panek
>            Assignee: Andriy Redko
>              Labels: cdi, extension, integration, karaf
>         Attachments: hydra.tar.gz, screenshot-1.png
>
>
> I am trying to use portable extension to get working CDI 1.2 and CXF 3.0.2 on Apache
Karaf. I wrapped it into OSGi bundle. I installed to my container also:
> * weld 2.1.1
> * pax-cdi-1.2
> * pax-cdi-1.2-web
> * pax-cdi-web-weld
> My JAXRS resources are not found by extension because some line from class **JAXRSCdiResourceExtension**
returns false even annotated element contains proper annotation but as a proxy (see attachment
image / screenshot from debugger).
> {code}
>         if (event.getAnnotated().isAnnotationPresent(ApplicationPath.class)) {
> {code}
> It would be nice,  to tell me how to get it working. I also tested CDI-1.1. Same situation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message