camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Schuster (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7341) CXFRS: InInterceptor defined in Spring is ignored
Date Thu, 03 Apr 2014 07:15:17 GMT

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

Stephan Schuster commented on CAMEL-7341:
-----------------------------------------

Could be related to CAMEL-7207

> CXFRS: InInterceptor defined in Spring is ignored
> -------------------------------------------------
>
>                 Key: CAMEL-7341
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7341
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.12.3, 2.13.0
>            Reporter: Stephan Schuster
>
> A CXF InInterceptor added to the rsServer via Spring is not added to the interceptor
chain and therefore is not executed.
> {code}
> <cxf:rsServer id="service" address="/exampleService"
>               serviceClass="com.example.service.ExampleService"
>               loggingFeatureEnabled="true"
>               xmlns:cxf="http://camel.apache.org/schema/cxf">
>     <cxf:providers>
>         <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider"/>
>     </cxf:providers>
>     <cxf:inInterceptors>
>         <bean class="com.example.service.ExampleInInterceptor"/>
>     </cxf:inInterceptors>
> </cxf:rsServer>
> {code}
> {code}
> public class ExampleInInterceptor extends AbstractPhaseInterceptor<Message> {
>     public ExampleInInterceptor() {
>         super(Phase.RECEIVE);
>     }
>     @Override
>     public void handleMessage(Message message) throws Fault {
>         ...
>     }
> }
> {code}
> The same configuration works with Camel Version 2.12.2.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message