You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/03/13 15:10:00 UTC
[jira] [Commented] (CAMEL-12349) multiple pollEnrich with ftp
component broken
[ https://issues.apache.org/jira/browse/CAMEL-12349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16397082#comment-16397082 ]
Claus Ibsen commented on CAMEL-12349:
-------------------------------------
You need to use unique timer names, eg you use period in both of them, so only 1 route is triggered
> multiple pollEnrich with ftp component broken
> ---------------------------------------------
>
> Key: CAMEL-12349
> URL: https://issues.apache.org/jira/browse/CAMEL-12349
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-ftp, camel-sftp
> Affects Versions: 2.20.2
> Reporter: abccbaandy
> Priority: Major
>
> I test with these code and enable debug level log
> {code:java}
> from("timer?period=3s").pollEnrich().simple(sftpServer1);
> from("timer?period=3s").pollEnrich().simple(sftpServer2);
> {code}
> it only log
> {code:java}
> Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
> {code}
> But it should log
> {code:java}
> Took 0.XXX seconds to poll: (the folder I set in sftpServer1)
> Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
> {code}
> I can confirm both sftpServer1 & sftpServer2 config are right.
> I test with these code
> {code:java}
> from(sftpServer1).log("${body}");
> from(sftpServer2).log("${body}");
> {code}
> And got expect result
> {code:java}
> Took 0.XXX seconds to poll: (the folder I set in sftpServer1)
> Took 0.XXX seconds to poll: (the folder I set in sftpServer2)
> {code}
> So it's probably not concurrency problem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)