How to update camel properties externally?

ε祈祈猫儿з 提交于 2019-12-02 10:12:01

If you use Camel error handling to retry (redeliver) then you can use the retryWhile to keep retrying until you return false. This allows you to use java code etc, and that allows you to read the updated configuration option.

See more details at

And if you have a copy of Camel in Action book, see page 152

For what properties you want them to be dynamic.you can move those prop to some db and fetch them whenever you are reading.I think a redesign is required for your camel route.

Peter Keller

Changing from endpoint parameters such as URLs etc., following procedure has to be used according to dynamic change endpoint camel:

  1. stop the route
  2. remove the route
  3. change the endpoint
  4. add the route
  5. start the route

If the to endpoint has to be configurable, you may use the recipient list component. Here you may read properties from a database and/or from the filesystem using the appropriate Camel component.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!