synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiranya Jayathilaka <hiranya...@gmail.com>
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 <supun06@gmail.com> 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?

Thanks,
Hiranya

> 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.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message