The local registry acts as a memory registry where you can store text strings, XML strings, and URLs. These entries can be retrieved from a mediator.
WSO2 ESB allows to add, edit and delete local registry entries easily.
Local Registry/Local Entries
<localEntry> element is used to declare registry entries that are local to the ESB instance as shown below:
These entries are top level entries which are globally visible within the entire system. Values of these entries can be retrieved via the extension XPath function
synapse:get-property(prop-name) and the keys of these entries could be specified wherever a registry key is expected within the configuration.
An entry can be static text specified as inline text or static XML specified as an inline XML fragment or specified as a URL (using the
src attribute). A local entry shadows any entry with the same name from a remote Registry.
If you want to add local entries before deploying the server, you can add them to the top-level bootstrap file
synapse.xml or to separate XML files in the
local-entries directory. When the server is started, these configurations will be added to the registry. For more information, see Storing Various WSO2 Enterprise Service Bus Configurations and Working with the Registry.