Question

I would like to have multiple Synapse configuration files like the WSO2 ESB samples, e.g. wso2esb-samples.bat -sn 1 to start the ESB with repository\samples\synapse_sample_1.xml and etc.

How to configure WSO2 ESB to load Synapse configuration from a different directory?

Was it helpful?

Solution

WSO2 ESB's configuration is kept in pre defined file structure. However, if you want to have the whole synapse config in one file, you can use synapse.xml for that purpose.

If you want to manage multiple ESB configs, then the best option is to use WSO2 Carbon Studio where you can hot deploy various ESB configuration as applications (so called capp).

WSO2 ESB Config structure:
=========================
synapse-configs
└── default
    ├── api
    ├── endpoints
    ├── event-sources
    ├── local-entries
    ├── priority-executors
    ├── proxy-services
    ├── registry.xml
    ├── sequences
    │   ├── fault.xml
    │   └── main.xml
    ├── synapse.xml
    └── tasks
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top