Folks,
I have completed the registry based synapse configuration builder and
the serializer pair, so that the synapse configuration is stored as an
exploded structure in the registry. Details of the feature is as follows;
* Initial startup uses the synapse.xml file located at the conf
directory and builds the synapse configuration using the
XMLConfigurationBuilder
* It stores the flat synapse configuration in an exploded registry
structure as shown below
* When the server is being shutting down the synapse configuration
will be serialized and persisted to the registry automatically (no
need to specifically save the configuration), and hence the
configuration will be available when you start the server next time
* After the initial start ESB loads the configuration from the
registry, and uses the RegistryBasedConfigBuidler to build the
configuration.
* You could force the server to load the configuration from the
synapse.xml file by specifying the property *-DuseSynapseXML*,
which will reset the persisted configuration and reloads the
configuration from the synapse.xml (import synapse.xml)
* If you want to export the running configuration into the flat
synapse.xml file, you could go to the /*Synapse*/ tab of the
/*Configuration*/ menu and click on the /*Save*/ button which will
serialize the configuration into the synapse.xml file
* There is a new mode for the server called sample mode, which will
be activated if you specify any sample configuration to be
started, by providing the *-Desb.sample=$SAMPLE_NUMBER*. In this
case the server will not persist the configuration to the registry
and also it will use the XMLConfigurationBuilder to build the
configuration with the specified sample configuration file.
_*Registry Structure*_
//carbon
/
//synapse-config
/
//synapse-registry
/sequences
/endpoints
/local-entries
/proxy-services
/event-sources
/synapse-startups
/
Thanks,
Ruwan
_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev