You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Abid Khan <Ab...@jeppesen.com> on 2012/04/04 03:21:28 UTC

SEND mediator

I have a configuration where I am publishing some messages.

In the configuration I have set the property to OUT_ONLY to be true.

But still I want to know if the message was posted or received by the other application, which mean is there anything in the MesageContext that tells me that the message was posted successfully?

Regards,

Abid

Re: SEND mediator

Posted by Hiranya Jayathilaka <hi...@gmail.com>.
On Thu, Apr 5, 2012 at 8:44 PM, Abid Khan <Ab...@jeppesen.com> wrote:

> I think we need to develop another mediator that is like filter mediator;
> but the condition is send success or send failed, and can invoke another
> sequence or set of mediators in both cases (i.e. send succeeded or failed).
> Kind of branching of the sequence based on the send success or failure.
>

This is already supported with the callout mediator (blocking send). If
successful the following mediators will execute. Otherwise the fault
sequence will execute.

Thanks,
Hiranya


>
> Regards,
> Abid
>
>
>
> -----Original Message-----
> From: Hiranya Jayathilaka [mailto:hiranya911@gmail.com]
> Sent: Thursday, April 05, 2012 7:19 AM
> To: user@synapse.apache.org
> Subject: Re: SEND mediator
>
> Hi Paul,
>
> On Thu, Apr 5, 2012 at 2:06 PM, Paul Fremantle <pz...@gmail.com> wrote:
>
> > Hiranya
> >
> > I agree this is one way, but its a little complex. Maybe we should add a
> > JIRA to try and come up with a simpler solution?
> >
>
> I'm sorry but I didn't get your point. Do you mean that the way we handle
> out-only sends is too complex? Or do you mean that the error handling
> mechanism for out-only messages is too complex? I believe a comm error in
> an out-only message will trigger the respective fault sequences and the
> usual error handling logic of Synapse will kick in.
>
> Thanks,
> Hiranya
>
>
> >
> > Paul
> >
> > On Wed, Apr 4, 2012 at 4:53 AM, Hiranya Jayathilaka <
> hiranya911@gmail.com
> > >wrote:
> >
> > > On Wed, Apr 4, 2012 at 6:51 AM, Abid Khan <Ab...@jeppesen.com>
> > wrote:
> > >
> > > > I have a configuration where I am publishing some messages.
> > > >
> > > > In the configuration I have set the property to OUT_ONLY to be true.
> > > >
> > > > But still I want to know if the message was posted or received by the
> > > > other application, which mean is there anything in the MesageContext
> > that
> > > > tells me that the message was posted successfully?
> > > >
> > >
> > > Such a communication error would usually result in an endpoint error
> and
> > > the endpoint would be forced into either the TIMEOUT state or the
> > SUSPENDED
> > > state.
> > >
> > > Thanks,
> > > Hiranya
> > >
> > >
> > > >
> > > > Regards,
> > > >
> > > > Abid
> > > >
> > >
> > >
> > >
> > > --
> > > Hiranya Jayathilaka
> > > Associate Technical Lead;
> > > WSO2 Inc.;  http://wso2.org
> > > E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> > > Blog: http://techfeast-hiranya.blogspot.com
> > >
> >
> >
> >
> > --
> > Paul Fremantle
> > Co-Founder and CTO, WSO2
> > Apache Synapse PMC Chair
> > OASIS WS-RX TC Co-chair
> >
> > blog: http://pzf.fremantle.org
> > paul@wso2.com
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
> >
>
>
>
> --
> Hiranya Jayathilaka
> Associate Technical Lead;
> WSO2 Inc.;  http://wso2.org
> E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>



-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

RE: SEND mediator

Posted by Abid Khan <Ab...@jeppesen.com>.
I think we need to develop another mediator that is like filter mediator; but the condition is send success or send failed, and can invoke another sequence or set of mediators in both cases (i.e. send succeeded or failed). Kind of branching of the sequence based on the send success or failure.

Regards,
Abid



-----Original Message-----
From: Hiranya Jayathilaka [mailto:hiranya911@gmail.com] 
Sent: Thursday, April 05, 2012 7:19 AM
To: user@synapse.apache.org
Subject: Re: SEND mediator

Hi Paul,

On Thu, Apr 5, 2012 at 2:06 PM, Paul Fremantle <pz...@gmail.com> wrote:

> Hiranya
>
> I agree this is one way, but its a little complex. Maybe we should add a
> JIRA to try and come up with a simpler solution?
>

I'm sorry but I didn't get your point. Do you mean that the way we handle
out-only sends is too complex? Or do you mean that the error handling
mechanism for out-only messages is too complex? I believe a comm error in
an out-only message will trigger the respective fault sequences and the
usual error handling logic of Synapse will kick in.

Thanks,
Hiranya


>
> Paul
>
> On Wed, Apr 4, 2012 at 4:53 AM, Hiranya Jayathilaka <hiranya911@gmail.com
> >wrote:
>
> > On Wed, Apr 4, 2012 at 6:51 AM, Abid Khan <Ab...@jeppesen.com>
> wrote:
> >
> > > I have a configuration where I am publishing some messages.
> > >
> > > In the configuration I have set the property to OUT_ONLY to be true.
> > >
> > > But still I want to know if the message was posted or received by the
> > > other application, which mean is there anything in the MesageContext
> that
> > > tells me that the message was posted successfully?
> > >
> >
> > Such a communication error would usually result in an endpoint error and
> > the endpoint would be forced into either the TIMEOUT state or the
> SUSPENDED
> > state.
> >
> > Thanks,
> > Hiranya
> >
> >
> > >
> > > Regards,
> > >
> > > Abid
> > >
> >
> >
> >
> > --
> > Hiranya Jayathilaka
> > Associate Technical Lead;
> > WSO2 Inc.;  http://wso2.org
> > E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> > Blog: http://techfeast-hiranya.blogspot.com
> >
>
>
>
> --
> Paul Fremantle
> Co-Founder and CTO, WSO2
> Apache Synapse PMC Chair
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>



-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

Re: SEND mediator

Posted by Paul Fremantle <pz...@gmail.com>.
Hiranya

Ah ok. Sorry I misunderstood. I thought you were saying that one had to
check the transport failure state in order to understand if the error had
happened.

Paul


On Thu, Apr 5, 2012 at 2:19 PM, Hiranya Jayathilaka <hi...@gmail.com>wrote:

> Hi Paul,
>
> On Thu, Apr 5, 2012 at 2:06 PM, Paul Fremantle <pz...@gmail.com> wrote:
>
> > Hiranya
> >
> > I agree this is one way, but its a little complex. Maybe we should add a
> > JIRA to try and come up with a simpler solution?
> >
>
> I'm sorry but I didn't get your point. Do you mean that the way we handle
> out-only sends is too complex? Or do you mean that the error handling
> mechanism for out-only messages is too complex? I believe a comm error in
> an out-only message will trigger the respective fault sequences and the
> usual error handling logic of Synapse will kick in.
>
> Thanks,
> Hiranya
>
>
> >
> > Paul
> >
> > On Wed, Apr 4, 2012 at 4:53 AM, Hiranya Jayathilaka <
> hiranya911@gmail.com
> > >wrote:
> >
> > > On Wed, Apr 4, 2012 at 6:51 AM, Abid Khan <Ab...@jeppesen.com>
> > wrote:
> > >
> > > > I have a configuration where I am publishing some messages.
> > > >
> > > > In the configuration I have set the property to OUT_ONLY to be true.
> > > >
> > > > But still I want to know if the message was posted or received by the
> > > > other application, which mean is there anything in the MesageContext
> > that
> > > > tells me that the message was posted successfully?
> > > >
> > >
> > > Such a communication error would usually result in an endpoint error
> and
> > > the endpoint would be forced into either the TIMEOUT state or the
> > SUSPENDED
> > > state.
> > >
> > > Thanks,
> > > Hiranya
> > >
> > >
> > > >
> > > > Regards,
> > > >
> > > > Abid
> > > >
> > >
> > >
> > >
> > > --
> > > Hiranya Jayathilaka
> > > Associate Technical Lead;
> > > WSO2 Inc.;  http://wso2.org
> > > E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> > > Blog: http://techfeast-hiranya.blogspot.com
> > >
> >
> >
> >
> > --
> > Paul Fremantle
> > Co-Founder and CTO, WSO2
> > Apache Synapse PMC Chair
> > OASIS WS-RX TC Co-chair
> >
> > blog: http://pzf.fremantle.org
> > paul@wso2.com
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
> >
>
>
>
> --
> Hiranya Jayathilaka
> Associate Technical Lead;
> WSO2 Inc.;  http://wso2.org
> E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>



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

blog: http://pzf.fremantle.org
paul@wso2.com

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

Re: SEND mediator

Posted by Hiranya Jayathilaka <hi...@gmail.com>.
Hi Paul,

On Thu, Apr 5, 2012 at 2:06 PM, Paul Fremantle <pz...@gmail.com> wrote:

> Hiranya
>
> I agree this is one way, but its a little complex. Maybe we should add a
> JIRA to try and come up with a simpler solution?
>

I'm sorry but I didn't get your point. Do you mean that the way we handle
out-only sends is too complex? Or do you mean that the error handling
mechanism for out-only messages is too complex? I believe a comm error in
an out-only message will trigger the respective fault sequences and the
usual error handling logic of Synapse will kick in.

Thanks,
Hiranya


>
> Paul
>
> On Wed, Apr 4, 2012 at 4:53 AM, Hiranya Jayathilaka <hiranya911@gmail.com
> >wrote:
>
> > On Wed, Apr 4, 2012 at 6:51 AM, Abid Khan <Ab...@jeppesen.com>
> wrote:
> >
> > > I have a configuration where I am publishing some messages.
> > >
> > > In the configuration I have set the property to OUT_ONLY to be true.
> > >
> > > But still I want to know if the message was posted or received by the
> > > other application, which mean is there anything in the MesageContext
> that
> > > tells me that the message was posted successfully?
> > >
> >
> > Such a communication error would usually result in an endpoint error and
> > the endpoint would be forced into either the TIMEOUT state or the
> SUSPENDED
> > state.
> >
> > Thanks,
> > Hiranya
> >
> >
> > >
> > > Regards,
> > >
> > > Abid
> > >
> >
> >
> >
> > --
> > Hiranya Jayathilaka
> > Associate Technical Lead;
> > WSO2 Inc.;  http://wso2.org
> > E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> > Blog: http://techfeast-hiranya.blogspot.com
> >
>
>
>
> --
> Paul Fremantle
> Co-Founder and CTO, WSO2
> Apache Synapse PMC Chair
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>



-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

Re: SEND mediator

Posted by Paul Fremantle <pz...@gmail.com>.
Hiranya

I agree this is one way, but its a little complex. Maybe we should add a
JIRA to try and come up with a simpler solution?

Paul

On Wed, Apr 4, 2012 at 4:53 AM, Hiranya Jayathilaka <hi...@gmail.com>wrote:

> On Wed, Apr 4, 2012 at 6:51 AM, Abid Khan <Ab...@jeppesen.com> wrote:
>
> > I have a configuration where I am publishing some messages.
> >
> > In the configuration I have set the property to OUT_ONLY to be true.
> >
> > But still I want to know if the message was posted or received by the
> > other application, which mean is there anything in the MesageContext that
> > tells me that the message was posted successfully?
> >
>
> Such a communication error would usually result in an endpoint error and
> the endpoint would be forced into either the TIMEOUT state or the SUSPENDED
> state.
>
> Thanks,
> Hiranya
>
>
> >
> > Regards,
> >
> > Abid
> >
>
>
>
> --
> Hiranya Jayathilaka
> Associate Technical Lead;
> WSO2 Inc.;  http://wso2.org
> E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>



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

blog: http://pzf.fremantle.org
paul@wso2.com

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

Re: SEND mediator

Posted by Hiranya Jayathilaka <hi...@gmail.com>.
On Wed, Apr 4, 2012 at 6:51 AM, Abid Khan <Ab...@jeppesen.com> wrote:

> I have a configuration where I am publishing some messages.
>
> In the configuration I have set the property to OUT_ONLY to be true.
>
> But still I want to know if the message was posted or received by the
> other application, which mean is there anything in the MesageContext that
> tells me that the message was posted successfully?
>

Such a communication error would usually result in an endpoint error and
the endpoint would be forced into either the TIMEOUT state or the SUSPENDED
state.

Thanks,
Hiranya


>
> Regards,
>
> Abid
>



-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com