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: Header name variable changed from message_type to message.type
Date Fri, 05 Jun 2009 11:47:08 GMT
Hi

Are you using JMS?

See the section - Message format when sending
http://camel.apache.org/jms



On Fri, Jun 5, 2009 at 1:41 PM, Charles Moulliard<cmoulliard@gmail.com> wrote:
> Hi,
>
> I would like to know if this is a bug or not. During the processign of my
> message, I see in the log that the name of the header defined has been
> renamed from :
>
> 13:34:10,171 | INFO  | Component@8044a2 | TraceInterceptor                 |
> rg.apache.camel.processor.Logger   88 |
> ID-dell-charles-4103-1244200215593-2-8 >>> convertBodyTo() -->
> to(ref:queueClientInEndpoint), Pattern:InOnly,
> Properties:{CamelFileLockName=d:\temp\data\oinp\OINP-dummy-1.txt.camelLock,
> CamelFileLock=sun.nio.ch.FileLockImpl[0:9223372036854775807 exclusive
> valid]}, Headers:{CamelFileBatchSize=1, CamelFileNameOnly=OINP-dummy-1.txt,
> CamelFileBatchIndex=0,
> CamelFileRelativePath=d:\temp\data\oinp\OINP-dummy-1.txt,
> CamelFileLastModified=Thu Jun 04 16:31:10 CEST 2009,
> CamelFileAbsolutePath=d:\temp\data\oinp\OINP-dummy-1.txt, origin=file,
> CamelFileName=OINP-dummy-1.txt, CamelFileLength=243,
> CamelFilePath=d:\temp\data\oinp\OINP-dummy-1.txt,
> CamelFileParent=d:\temp\data\oinp, *message_type=OINP*,
> CamelFileAbsolute=true}, BodyType:String, Body:PVI_ID, ORG_ID,
> MSG_SEN_CPY_ID, AGT_ID, MSG_TGT_CPY_ID, PVI_PRD_TP, FND_IDF_TP, FND_ID,
> ORD_DIR_CD, ORG_SEN_TS, ORD_UNT_NB, ORD_CSH_AM
> 11111,22222,33333,AGENCY23,EUR,44444,PRODUCT2,4,LU1234567890,1,20080107-14:02:09,10,1287.44
>
>
> message_type to message.type
>
> 13:34:10,296 | INFO  | ActiveMQ Task    | FailoverTransport                |
> sport.failover.FailoverTransport  714 | Successfully connected to
> tcp://localhost:61616
> 13:34:10,406 | INFO  | enerContainer-42 | TraceInterceptor                 |
> rg.apache.camel.processor.Logger   88 |
> ID-dell-charles-4103-1244200215593-2-9 >>> queuingservice:x3s:client:in -->
> choice(${in.header.message_type} == 'OINP'), Pattern:InOnly,
> Headers:{CamelFileBatchSize=1, CamelFileNameOnly=OINP-dummy-1.txt,
> JMSCorrelationID=null,
> JMSMessageID=ID:dell-charles-3850-1244199193453-2:6:1:1:1,
> CamelFileBatchIndex=0,
> CamelFileAbsolutePath=d:\temp\data\oinp\OINP-dummy-1.txt, JMSDeliveryMode=2,
> JMSTimestamp=1244201650375, JMSReplyTo=null,
> JMSDestination=queue://x3s:client:in, JMSType=null, JMSRedelivered=false,
> CamelFileLength=243, CamelFileAbsolute=true, JMSExpiration=0,
> CamelFileLastModified=Thu Jun 04 16:31:10 CEST 2009,
> CamelFileRelativePath=d:\temp\data\oinp\OINP-dummy-1.txt, *message.type=OINP
> *, origin=file, JMSPriority=4, JMSXGroupID=null,
> CamelFileName=OINP-dummy-1.txt,
> CamelFilePath=d:\temp\data\oinp\OINP-dummy-1.txt,
> CamelFileParent=d:\temp\data\oinp}, BodyType:String, Body:PVI_ID, ORG_ID,
> MSG_SEN_CPY_ID, AGT_ID, MSG_TGT_CPY_ID, PVI_PRD_TP, FND_IDF_TP, FND_ID,
> ORD_DIR_CD, ORG_SEN_TS, ORD_UNT_NB, ORD_CSH_AM
> 11111,22222,33333,AGENCY23,EUR,44444,PRODUCT2,4,LU1234567890,1,20080107-14:02:09,10,1287.44
>
>
> here is the route :
>
>    <camel:camelContext trace="true" xmlns="
> http://camel.apache.org/schema/osgi">
>
>        <camel:endpoint id="fileEndpoint" uri="#{uriFile}"/>
>        <camel:endpoint id="queueClientInEndpoint"
> uri="#{uriQueueClientIn}"/>
>
>        <camel:route>
>            <camel:from ref="fileEndpoint" />
>            <camel:setHeader headerName="origin">
>                <camel:constant>file</camel:constant>
>            </camel:setHeader>
>            <camel:setHeader headerName="*message_type*">
>                <camel:constant>OINP</camel:constant>
>            </camel:setHeader>
>            <camel:convertBodyTo type="java.lang.String"/>
>            <camel:to ref="queueClientInEndpoint" />
>        </camel:route>
>
>
>
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *****************************
> blog : http://cmoulliard.blogspot.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