...
In this case, it is necessary to make the mediator an OSGI fragment of the synapse-core bundler. To achieve this, use the <Fragment-Host>synapse-core</Fragment-Host>
.
Create <PROJECT_HOME>/main/resources/META-INF.services/org.apache.synapse.config.xml.MediatorFactory
and <PROJECT_HOME>/main/resources/META-INF.services/org.apache.synapse.config.xml.MediatorSerializer
files with the following content as shown below, to add service provider definitions to your Maven project.
Code Block | ||||
---|---|---|---|---|
| ||||
org.wso2.carbon.mediator.cache.config.xml.CacheMediatorFactory |
Code Block | ||||
---|---|---|---|---|
| ||||
org.wso2.carbon.mediator.cache.config.xml.CacheMediatorSerializer |
After you create the mediator, place the JAR file in the <ESB_HOME>\repository\components\dropins
directory.
...