Hi

The return value of the mediator is not "success" but whether or not the message is to continue processing. For example, the drop mediator returns false to say that the engine should not continue processing this message.

If there is a failure, the mediator should throw a fault. You can catch the fault using the fault sequence.

Take a look at Sample 4:

http://wso2.org/project/esb/java/1.6/docs/ESB_Samples.html#Sample4

Paul

Riyadh wrote:
Hi,
I need to check whether a mediator (e.g. for example the send mediator) is successfully mediated or not in a subsequent custom mediator. i guess i can use the value returned by the mediate() method. But i dont know how to get the return value of mediate() method of a send mediator for example. Is there any other way to get the return value of a mediator? Thanks. Riyadh


------------------------------------------------------------------------

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

--
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair
VP, Apache Synapse

Office: +44 844 484 8143
Cell: +44 798 447 4618

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to