camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: headers removed when moving to a queue (Camel 2.0) ??
Date Mon, 30 Mar 2009 14:26:33 GMT
Hi

Can you show the method signature of your bean? (bean:webservice)


On Mon, Mar 30, 2009 at 3:14 PM, cmoulliard <cmoulliard@gmail.com> wrote:
>
> 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.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message