You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Paul Fremantle <pz...@gmail.com> on 2006/11/20 19:39:22 UTC

adding options to RM

I think the RM module is actually working now :-) I've submitted a
patch to sandesha-dev to fix the bug I was getting.

Right now the <enableRM/> makes two separate assumptions.

1) that we should always use a separate listener not just anon
2) that every message is last message.

I suggest that we decouple these. It seems to me that having a
separate listener is really a function of how you call an endpoint -
irrespective of RM, so we should add that into the endpoint
definition. Also the latest RM spec defines how to do RM without a
separate listener and Sandesha is supporting that.

As for Lastmessage, its a bit trickier. It isn't a bad assumption for
testing, but its horribly inefficient if anyone wants to use synapse.

I suggest we either make it an option on <enableRM/>

e.g. <enableRM lastMessage="true"/>

or we add a mediator that sets it on a message - which could be done
with a filter

<filter xpath="/signoff">
   <lastMessage/>
</filter>

I prefer the second.

There are some other options we should allow - in particular which
version of RM, but that can wait. If no-one objects, I'll make those
changes.

Paul

-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

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

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


Re: adding options to RM

Posted by Paul Fremantle <pz...@gmail.com>.
I propose adding the separate listener as an attribute on
enableAddressing. Since it requires addressing to work, this seems a
logical place to put it.

So the syntax is

 <enableAddressing separateListener="false|true"/>

with false being the default.

Paul


On 11/21/06, Paul Fremantle <pz...@gmail.com> wrote:
> On 11/21/06, Asankha C. Perera <as...@wso2.com> wrote:
> > Paul
> >
> > This is good news! Is this using the Sandesha from the repository Dims
> > pointed ?( http://ws.zones.apache.org/repository/sandesha2/ )
>
> As soon as that is updated then it will be.
>
> > > Right now the <enableRM/> makes two separate assumptions.
> > >
> > > 1) that we should always use a separate listener not just anon
> > > 2) that every message is last message.
> > I think for a start, these assumptions should be fine..
> > > As for Lastmessage, its a bit trickier. It isn't a bad assumption for
> > > testing, but its horribly inefficient if anyone wants to use synapse.
> > Is there anyway we could use a property on the message with the
> > set-property mediator instead of introducing a new mediator to mark the
> > last message?
>
> Yes that should be fine if we document it.
>
> > > There are some other options we should allow - in particular which
> > > version of RM, but that can wait. If no-one objects, I'll make those
> > > changes.
> > I'm +1
> >
> > thanks
> > asankha
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

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

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


Re: adding options to RM

Posted by Paul Fremantle <pz...@gmail.com>.
On 11/21/06, Asankha C. Perera <as...@wso2.com> wrote:
> Paul
>
> This is good news! Is this using the Sandesha from the repository Dims
> pointed ?( http://ws.zones.apache.org/repository/sandesha2/ )

As soon as that is updated then it will be.

> > Right now the <enableRM/> makes two separate assumptions.
> >
> > 1) that we should always use a separate listener not just anon
> > 2) that every message is last message.
> I think for a start, these assumptions should be fine..
> > As for Lastmessage, its a bit trickier. It isn't a bad assumption for
> > testing, but its horribly inefficient if anyone wants to use synapse.
> Is there anyway we could use a property on the message with the
> set-property mediator instead of introducing a new mediator to mark the
> last message?

Yes that should be fine if we document it.

> > There are some other options we should allow - in particular which
> > version of RM, but that can wait. If no-one objects, I'll make those
> > changes.
> I'm +1
>
> thanks
> asankha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

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

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


Re: adding options to RM

Posted by "Asankha C. Perera" <as...@wso2.com>.
Paul

This is good news! Is this using the Sandesha from the repository Dims 
pointed ?( http://ws.zones.apache.org/repository/sandesha2/ )
> Right now the <enableRM/> makes two separate assumptions.
>
> 1) that we should always use a separate listener not just anon
> 2) that every message is last message.
I think for a start, these assumptions should be fine..
> As for Lastmessage, its a bit trickier. It isn't a bad assumption for
> testing, but its horribly inefficient if anyone wants to use synapse.
Is there anyway we could use a property on the message with the 
set-property mediator instead of introducing a new mediator to mark the 
last message?
> There are some other options we should allow - in particular which
> version of RM, but that can wait. If no-one objects, I'll make those
> changes.
I'm +1

thanks
asankha

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