Skip to content

Instantly share code, notes, and snippets.

@Asitha
Last active September 4, 2015 11:11
Show Gist options
  • Save Asitha/481688f06ab156737985 to your computer and use it in GitHub Desktop.
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.
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