[
https://issues.apache.org/activemq/browse/CAMEL-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50850#action_50850
]
Charles Moulliard commented on CAMEL-1487:
------------------------------------------
Hi Willem,
Here is the scenario that I have to follow each time that I have a problem. For
your information, this is not unique to CXF, I have also discovered something
similar when deploying a DAO bundle using Hibernate (I was oblige in this case
to restart also SMX : https://issues.apache.org/activemq/browse/SMX4KNL-255)
1) stop bundle
2) install bundle containing camel route using update command followed by start
bundle. If there is a problem to configure the camel routes (like it was the
case with the setHeader), then the WebService is not available from Jetty
(http://localhost:8080/camel-incident/reportincident?wsdl)
3) I correct the camel routes, regenerate a bundle
4) so I stop my bundle, update it and start it. if I try to reach the web site
: http://localhost:8080/camel-incident/reportincident?wsdl, I can't
5) I stop servicemix
6) I restart it
7) now I'm able to connect to the webservice
Remark : I also tested the procedure by stopping the bundle jetty and cxf but I
have also to restart SMX in this case.
The most frustrating is that we don't see any error/warning message
Charles
> 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
> Assignee: Willem Jiang
>
> 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.