You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2009/03/25 17:41:42 UTC
[jira] Created: (CAMEL-1487) 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
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.
[jira] Commented: (CAMEL-1487) 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
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50874#action_50874 ]
Willem Jiang commented on CAMEL-1487:
-------------------------------------
I managed to redeploy the camel-cxf endpoint in osgi by using the cxf-osgi transport.
Here is the configuration file which base on the camel-1.x , you may need to change it for using camel2.0
{code}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://activemq.apache.org/camel/schema/spring"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://activemq.apache.org/camel/schema/osgi
http://activemq.apache.org/camel/schema/osgi/camel-osgi-1.6.0.xsd
http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring-1.6.0.xsd
http://activemq.apache.org/camel/schema/cxfEndpoint http://activemq.apache.org/camel/schema/cxf/camel-cxf-1.6.0.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
<bean id="myBean" class="org.apache.camel.example.reportincident.internal.MyBean" />
<!-- webservice endpoint -->
<cxf:cxfEndpoint id="reportIncident"
address="/example/incident"
serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint"
xmlns:s="http://reportincident.example.camel.apache.org">
</cxf:cxfEndpoint>
<camelContext trace="true" xmlns="http://activemq.apache.org/camel/schema/osgi">
<!-- Receive WS message -->
<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:myBean" />
<!--camel:transform>
<camel:method bean="feedback" method="setOk" />
</camel:transform-->
</camel:route>
</camelContext>
</beans>
{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
> 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.
[jira] Commented: (CAMEL-1487) 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
Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (CAMEL-1487) 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
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-1487:
-----------------------------------
Assignee: Willem Jiang
> 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.
[jira] Commented: (CAMEL-1487) 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
Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50853#action_50853 ]
Charles Moulliard commented on CAMEL-1487:
------------------------------------------
Hi Willem,
I know this example but it is based on jaxws:endpoint which is the CXF endpoint and not camel-cxf endpoint.
What is our strategy for OSGI projects when we have to combine Camel routes and webservices ? I mean what will be the recommendations that we will provide for the architects / developers : use jaxws:endpoint and not camel-cxf endpoint ?
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.
[jira] Commented: (CAMEL-1487) 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
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50854#action_50854 ]
Willem Jiang commented on CAMEL-1487:
-------------------------------------
Hi Charles,
For the configuration perspective, CXF endpoint and camel-cxf endpoint holds the same information.
Since they are using in two different library, they have different namespace and tag.
But Your CXF endpoint's configuration knowledge still work for camel-cxf endpoint :)
The user should keep in mind what kind of endpoint (CXF endpoint or the camel-cxf endpoint) they want to create in the Spring Application Context.
Willem
> 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.
[jira] Commented: (CAMEL-1487) 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
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50851#action_50851 ]
Willem Jiang commented on CAMEL-1487:
-------------------------------------
Hi Charles,
I just talked with Freeman, he told me there is a OSGi transport which provides a more easy way to use servelt transport for CXF endpoint in OSGi.
You can find the example in the ${SMX4_HOM}\examples\cxf-osgi.
Hope that can be helpful to your problem of CXF endpoint republishing.
Willem
> 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.
[jira] Resolved: (CAMEL-1487) 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
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-1487.
---------------------------------
Resolution: Won't Fix
> 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.
[jira] Commented: (CAMEL-1487) 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
Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (CAMEL-1487) 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
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50847#action_50847 ]
Willem Jiang commented on CAMEL-1487:
-------------------------------------
Hi Charles,
Can you give me more information about it is need to restart the ServiceMix Server to get the webService operational?
I don't know if it relates to the socket address reusing issue.
Here are the note of CXF Jetty Engine which implements the http transport for CXF Endpoint.
//if we shutdown the port, on SOME OS's/JVM's, if a client
//in the same jvm had been talking to it at some point and keep alives
//are on, then the port is held open for about 60 seconds
//afterwards and if we restart, connections will then
//get sent into the old stuff where there are
//no longer any servant registered. They pretty much just hang.
If you want to change the CXF endpoint configuration dynamically, I suggest you to use the CXF severlet transport
to walk around this kind of issue.
Willem
> 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.