camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmoulliard <cmoulli...@gmail.com>
Subject headers removed when moving to a queue (Camel 2.0) ??
Date Mon, 30 Mar 2009 13:14:41 GMT

Hi,

I would like to know if I do something wrong or is it a bug ?

In the following route, a header is created to define the origin of the
route, the header is well added in first steps of the process (this is
confirmed by the trace) but lost when the message go the queue ?

			<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" />
			<camel:to uri="bean:webservice" />
			<camel:inOnly uri="queuingservice:queue:in" />
			<camel:transform>
				<camel:method bean="feedback" method="setOk" />
			</camel:transform>

convertBodyTo() --> to(bean:webservice), Pattern:InOut, ... ,
Headers:{content-type=text/xml;charset=UTF-8, operationName=ReportIncident,
content.type=text/xml;charset=UTF-8, Host=localhost:8080,
Content-Length=640,
SOAPAction="http://reportincident.example.camel.apache.org/ReportIncident",
origin=webservice, User-Agent=Jakarta Commons-HttpClient/3.1,
operationNameSpace=http://reportincident.example.camel.apache.org,
org.apache.cxf.headers.Header.list=[]}, ...

no more headers here !!! except properties and body

to(bean:webservice) --> inOnly(queuingservice:queue:in), Pattern:InOut, ...,
BodyType:java.util.ArrayList,
Body:[{org.apache.camel.example.reportincident.model.Incident=org.apache.camel.example.reportincident.model.Incident@1f93f8[

Is it a bug a bad configuration of me ?

Regards,

Charles

-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/headers-removed-when-moving-to-a-queue-%28Camel-2.0%29----tp22782917p22782917.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message