Last active
September 4, 2015 11:11
-
-
Save Asitha/481688f06ab156737985 to your computer and use it in GitHub Desktop.
Java snippet to save content in WSO2 Registry using an ESB class mediator. This code shows how a value saved in message context can be easily saved to registry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String resourcePath = "conf:/store/myStore"; | |
mc.getConfiguration().getRegistry().newResource(resourcePath, false); | |
mc.getConfiguration().getRegistry().updateResource( | |
resourcePath, mc.getProperty("myProperty").toString().getBytes()); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment