[
https://issues.apache.org/jira/browse/CAMEL-6329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13646402#comment-13646402
]
Claus Ibsen commented on CAMEL-6329:
------------------------------------
The JMX operation should use some API from FileEndpoint / FileConsumer to do
this. So people can also use this API without JMX.
> File consumer - Allow to change directory using JMX
> ---------------------------------------------------
>
> Key: CAMEL-6329
> URL: https://issues.apache.org/jira/browse/CAMEL-6329
> Project: Camel
> Issue Type: Improvement
> Components: camel-core, jmx
> Affects Versions: 2.11.0
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: Future
>
>
> People may want to change a Camel route to pickup files from another
> directory. We should allow to re-configure this at runtime more easily with a
> JMX operation on the FileConsumer.
> The trick is possible that we should only allow to change it if the consumer
> has been suspended/stopped, so we don't change it during running. Though an
> alternative it to remember the change, and then only apply it at next poll.
> Then we can possible change it without the needed for suspend/stop first.
> See nabble
> http://camel.465427.n5.nabble.com/How-to-dynamically-configure-directory-on-file-consumer-tp5731811.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira