It seems you are doing it wrong.
What is the intention of your doing?

How do you use placeholders in Camel routes? If you place them into endpoints' URLs you could not change their values to take effect immediately. You have to reset the whole Camel context. It leads to stop all routes, reinit them and start again. It will take a time. Is it a thing you really need?

Any way you can put all needed properties in class fields to make them change.
___
Best wishes,Vyacheslav.

Ron Cecchini <roncecch...@comcast.net> 24 августа 2021 г. 07:53:29 написал:

I'm using Camel + Spring Boot.

In my application.properties, I set a property 'foo.bar.size'

In my routes, I use:  {{foo.bar.size}}

In some Java processor code, I use: camelContext.resolvePropertyPlaceholders("{{foo.bar.size}}")

I now need to reset that property in some Java code and have it take effect immediately.

I read the "Properties" doc and tried a couple of things... but I'm missing the magic sauce.

How do I reset an application property?

Thank you very much.

Reply via email to