poison64
poison64

Reputation: 101

How to get current version of registry resource in wso2esb custom mediator

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

Answers (1)

Martin Hald
Martin Hald

Reputation: 676

Not sure if it helps, but the esb caches the registry for better performance. More information can be found here.

WSO2 Registry

Maybe if you change the cachableDuration parameter it might work.

Hope that helps.

Upvotes: 1

Related Questions