I have a route where I want to get access_token once, store it in a static variable and re-use it between exchanges. I couldn't use context variables for this, as modifying context variable didn't work ( doesn't persist the modified data ).
looked into camel properties component, but looks like that is more for storing endpoints.
please suggest how to have a static variable that can be modified and persistent across exchanges for a route. A solution that involves spring is fine too.