synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Supun Kamburugamuva <supu...@gmail.com>
Subject Re: Synapse Error handling in the SynapseCallbackReceiver class
Date Mon, 07 Feb 2011 11:34:53 GMT
Sorry for the late reply.

Here I'm attaching a diff.

Thanks,
Supun..

On Fri, Dec 3, 2010 at 12:06 PM, Supun Kamburugamuva <supun06@gmail.com> wrote:
>
>
> On Thu, Dec 2, 2010 at 12:16 AM, Hiranya Jayathilaka <hiranya911@gmail.com>
> wrote:
>>
>> 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?
>
> In all the failure cases including connection failures it creates a Fault
> Message context.
>
> I'm working on a patch and once I'm done I'll submit it for review.
>
> Thanks,
> Supun..
>>
>> 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
>>
>
>
>
> --
> Technical Lead, WSO2 Inc
> http://wso2.org
> supunk.blogspot.com
>
>
>



-- 
Technical Lead, WSO2 Inc
http://wso2.org
supunk.blogspot.com

Mime
View raw message