I need to persist a single string value which changes hourly and is fetched by a route for other routes to use. I'm using the Spring XML DSL.
I've got it working fine, but it seems clumsy. I have a java class with a setter and a getter to wrap the string and I set it with:
<to uri="bean:store?method=setValue"/>
And get it back into the body in another route with:
<to uri="bean:store?method=getValue"/>
Is there a pure Spring way of doing this in the xml without needing a bespoke java class?
camel:setPropertyto set property on exchange, but for the routes in question that might not apply if they don't share exchange. So I am afraid there is no better way in XML DSL. - hgrey