0
votes

I'm trying to add custom handlers to a proxy service created in wso2 esb. Using handler I want to

  1. Intercept the call to the proxy service
  2. Perform some operation and set values to the context

axis2.xml seems to be a place to achieve this but it seems a common configuration for all the proxy services. What if I want to use custom validation handlers for specific proxy services?

2

2 Answers

1
votes

you can write a custom esb mediator for this purpose. By extending AbstractMediator, you can write your own mediator class where you have access to messageContext. Then you can place this mediator in your proxy service. Some of the articles which may helpful to you.

[1]http://achala11.blogspot.com/2012/12/how-to-write-custom-mediator-wso2-esb.html

[2]http://wso2.com/library/2898

[3]http://maninda.blogspot.com/2012/11/writing-custom-mediator-for-wso2-esb.html