Skip to content

Latest commit

 

History

History
 
 

1-basic-synapse-handler

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
  1. Build Source and get the jar file.
  2. Place jar file into the <EI_HOME>/lib directory.
  3. Add following handler into the <EI_HOME>/conf/synapse-handlers.xml file.
<handler name = "BasicHandler" class="org.wso2.sample.synapse.handler.BasicHandler"/>
  1. Add following log4j property into the <EI_HOME>/conf/log4j.properties file.
log4j.logger.org.wso2.sample.synapse.handler.BasicHandler=INFO
  1. Add synapse proxy service into the EI server.
  2. 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