Reputation: 101
I'm creating a custom mediator for wso2 esb and in this mediator I'm reading the configuration from registry. To be exact: gov:conf/mediator.conf
Now to read this configuration I'm using MessageContext.getFormat("") and it works well but seems to be caching the resource. So if I change something in the configuration I have to restart the server (esb) for the changes to be in effect.
Is there any other way to read the resource without getting an old cached version?
Upvotes: 1
Views: 128
Reputation: 676
Not sure if it helps, but the esb caches the registry for better performance. More information can be found here.
Maybe if you change the cachableDuration parameter it might work.
Hope that helps.
Upvotes: 1