Modifying config registry resource content during mediation in WSO2 ESB
问题 I have a scenario where I need to store simple counter in config registry and increment it at end of sequence flow. Reason we need to store in config registry is in case server get restarted we have last counter value persisted. Can someone suggest how to increment the counter in config registry ? 回答1: Sample javascript you can use in your mediation to save current message inside registry : <script language="js"><![CDATA[ importPackage(Packages.org.apache.synapse.config); mc.getConfiguration(