- Build Source and get the jar file.
- Place jar file into the <EI_HOME>/lib directory.
- Add following handler into the <EI_HOME>/conf/synapse-handlers.xml file.
<handler name = "BasicHandler" class="org.wso2.sample.synapse.handler.BasicHandler"/>
- Add following log4j property into the <EI_HOME>/conf/log4j.properties file.
log4j.logger.org.wso2.sample.synapse.handler.BasicHandler=INFO
- Add synapse proxy service into the EI server.
- Envoke the service with curl command or try it tool.
curl --location --request GET 'http://localhost:8280/services/handler_test_proxy'
This will print following logs
[EI-Core] INFO - BasicHandler Inside Request Inflow
[EI-Core] INFO - LogMediator Log = Hit the proxy
[EI-Core] INFO - BasicHandler Inside Response Outflow