Exam4Training

Select the CORRECT statement about setting parameters for class mediators.

Select the CORRECT statement about setting parameters for class mediators.
A . Both statement b and c are correct.
B. It is not possible to set parameters for custom mediators.
C. Custom mediator’s parameters should be declared as public fields in mediator code. For instance: public String foo, bar;
D. Synapse properties can be used to pass values to mediator arguments.
For instance:
<class name="org.wso2.custom.HelloClassMediator">
<property name=MfooM value="10"/>
<property name=Mbar
value="5"/>
</class>

Answer: D

Exit mobile version