camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8831) Problem with camel-file file name id
Date Thu, 04 Jun 2015 10:08:38 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14572491#comment-14572491
] 

Claus Ibsen commented on CAMEL-8831:
------------------------------------

Use ${property.CamelCorrelationId}

> Problem with camel-file file name id
> ------------------------------------
>
>                 Key: CAMEL-8831
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8831
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.15.2
>         Environment: Windows 8 64 bits
>            Reporter: Bertrand Donnet
>            Assignee: Claus Ibsen
>
> It seems that the id variable used for a file endpoint is not correct anymore when splitting
and routing message to different destinations.
> Here is my route from XML:
>  <routes xmlns="http://camel.apache.org/schema/spring">
> 	<route id="file:/Camel/Reception">
> 		<from uri="file:/Camel/Reception"/>
> 		<to uri="file:/Camel/Output1?fileName=${file:name}_${header.CamelSplitIndex}_${id}"
/>
> 		<split streaming="true">
> 			<tokenize token="\$" />
> 			<to uri="file:/Camel/Output2?fileName=${file:name}_${header.CamelSplitIndex}_${id}"
/>
> 		</split>
> 	</route>
> </routes>
> and the output with version 2.15.2 is :
> myfile_0_ID-RSLAP46-50540-1433406804658-0-4
> myfile_1_ID-RSLAP46-50540-1433406804658-0-6
> myfile_2_ID-RSLAP46-50540-1433406804658-0-8
> instead of this one (OK with version 2.15.1):
> myfile_0_ID-RSLAP46-50540-1433406804658-0-2
> myfile_1_ID-RSLAP46-50540-1433406804658-0-2
> myfile_2_ID-RSLAP46-50540-1433406804658-0-2
> Is there a new feature added in 2.15.2 for that ?
> Thanks a lot for your great work



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message