WSO2 ESB includes working examples that demonstrate its features and capabilities.
Please note: if a given sample required to change axis2.xml file or add some libraries to the ESB, then need to restart the ESB.
How to run multiple samples without restarting the WSO2 ESB:
The simplest way is just copy the configuration from the ESB docs and paste it on ESB source view and update: then it will deploy the new synapse config to the ESB_HOME/repository/deployment/server/synapse-configs/default
Create a CAR file and deploy it to the ESB.
We can use the WSO2 Developer Studio for create CAR files