synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiranya Jayathilaka <>
Subject Re: Synapse Error handling in the SynapseCallbackReceiver class
Date Wed, 01 Dec 2010 18:46:29 GMT
Hi Supun,

On Wed, Dec 1, 2010 at 12:14 PM, Supun Kamburugamuva <> wrote:
> The way errors are handled in the SynapseCallbackReceiver is pretty strange
> to me. When an error happens at the transport sender this callback receiver
> is invoked. But when it is invoked, it uses the incoming message context to
> invoke the synapse configuration and send back the message. But there is a
> message context originated from the transport itself. Synapse callback
> doesn't use this message context for invoking the language.

Does the transport always have a response message context in case of a
fault? What about in a situation like a connection failure?


> This makes the life hard at the handling of faults in Synapse configuration.
> To send the fault back to the user, user has to do things like removing the
> To address and setting the RESPONSE to true.
> I would like to re-factor this code to use the original message context
> coming from the transport. WDYT?
> Thanks,
> Supun..

Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;
E-mail:;  Mobile: +94 77 633 3491

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message