1

I'm new to WSO2 ESB. I cant seem to find the difference between axis2 and axis2-client scope of the property mediator.

Difference between

<property name="xyz" value="something" scope="axi2">  and

<property name="xyz" value="something" scope="axi2-client">
Community
  • 1
  • 1
  • Hi Rishikesh, as you are new I would say, don't bother with the axis2 scopes, see: https://stackoverflow.com/questions/34269918/what-exactly-is-the-transport-scope-in-property-mediators-in-wso2-esb for an explanation – Jan Apr 05 '19 at 15:48

1 Answers1

0

There are 5 different types of scopes for the Property Mediator, namely

  • Synapse (Default)
  • axis2
  • axis2-client
  • Transport
  • Operation

To understand the difference between Axis2 and Axis2-client you have to know about the Synapse scope first

Properties set in Synapse scope last as long as the request-response transaction exists.

Axis2 scope has a much shorter lifespan compared to Synapse and is mostly used to pass parameters to the Axis2 Engine

Axis2-client is similar to Synapse. The difference is that axis2-client scope can be accessed inside the mediate() method of a custom mediator. This custom mediator however needs to be configured using a Class Mediator