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

Charles Moulliard commented on CAMEL-1487:
------------------------------------------

Hi,

With the modification committed today in camel-cxf, it is possible now to add a 
header. Nevertheless, the problem is always there if by example I would like to 
create a route like this where I call a spring bean :

{code}
                <!-- CXF route -->
                <camel:route>
                        <camel:from uri="cxf:bean:reportIncident" />
                        <!-- issue resolved 26/03/2009 -->
                        <camel:setHeader headerName="origin">
                                <camel:constant>webservice</camel:constant>
                        </camel:setHeader>
                        <camel:convertBodyTo 
type="org.apache.camel.example.reportincident.InputReportIncident" />
                        <camel:to uri="bean:webservice" />
                        <!-- <camel:to uri="queuingservice:queue:in" />  -->
                        <camel:transform>
                                <camel:method bean="feedback" method="setOk" />
                        </camel:transform>
                </camel:route>


{code}

> camel-cxf endpoint does not support setHeader when the camel routes are 
> deployed in SMX kernel / after a change in the camel-context servicemix must 
> be restrated
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1487
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1487
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>         Environment: SMX Kernel 1.2-SNAPSHOT, Camel 2.0-SNAPSHOT, CXF 
> 2.2-SNAPSHOT
>            Reporter: Charles Moulliard
>
> Hi,
> A) Set Header not supported
> The following camel spring DSL syntax deployed in a OSGI bundle (ServiceMix 
> Kernel 1.2-SNAPSHOT) does not allow to the webservice to work :
> {code}
>               <!-- CXF route -->
>               <camel:route>
>                       <camel:from uri="cxf:bean:reportIncident" />
>                       <camel:setHeader headerName="origin">
>                               <camel:constant>webservice</camel:constant>
>                       </camel:setHeader>
>                       <camel:convertBodyTo 
> type="org.apache.camel.example.reportincident.InputReportIncident" />
> ....
> {code}
> Apparently adding a setHeader is not accepted by camel:cxf endpoint :-(
> B) Server must be restarted
> When I remove the setHeader from the camel route :
> {code}
>               <!-- CXF route -->
>               <camel:route>
>                       <camel:from uri="cxf:bean:reportIncident" />
>                       <camel:convertBodyTo 
> type="org.apache.camel.example.reportincident.InputReportIncident" />
> ....
> {code}
> and that I update the bundle, I must restart the ServiceMix Server in order 
> to have a webService operational !!!!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to