You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by Supun Kamburugamuva <su...@gmail.com> on 2009/06/26 07:30:33 UTC

Endpoint address dynamic look up

Hi all,

I got this idea and I thought of asking it from the community.

I think it is better to have the flexibility to change an endpoint address
dynamically. At the moment we can achieve this with DefaultEndpoint or using
a send mediator without an Endpoint. In both these cases we can change the
address by using the header mediator to set the To. Or we can use the
incoming To address without using a HeaderMediator.

But if we want to change the address of a loadbalance or failover endpoint
dynamically, this won't work. So my idea is to allow the endpoints to use an
expression to pick the endpoint address.

This may be valid or I might be missing something :). Your comments are
welcome.

Thanks,
Supun..

-- 
Software Engineer, WSO2 Inc
http://wso2.org
http://supunk.blogspot.com

Re: Endpoint address dynamic look up

Posted by Ruwan Linton <ru...@gmail.com>.
Indika,

I see this as a good suggestion... so the routing information is kept in the
registry and the next endpoint is looked up from the registry. So that it is
going to be a set of equivalent EPR's in most of the part.

Extracting the endpoint address from the message is a special case to me and
I don't think we should support that by default. There is a two step process
which is explained in the first mail by Supun.

Thanks,
Ruwan

On Fri, Jun 26, 2009 at 2:53 PM, indika kumara <in...@gmail.com>wrote:

> Supun
>
> Could you extend this to enable looking up EPR from a routing table
> defined in the registry as an XML.?
>
> Thanks
> Indika
>
> On Fri, Jun 26, 2009 at 11:00 AM, Supun Kamburugamuva<su...@gmail.com>
> wrote:
> > Hi all,
> >
> > I got this idea and I thought of asking it from the community.
> >
> > I think it is better to have the flexibility to change an endpoint
> address
> > dynamically. At the moment we can achieve this with DefaultEndpoint or
> using
> > a send mediator without an Endpoint. In both these cases we can change
> the
> > address by using the header mediator to set the To. Or we can use the
> > incoming To address without using a HeaderMediator.
> >
> > But if we want to change the address of a loadbalance or
> failover endpoint
> > dynamically, this won't work. So my idea is to allow the endpoints to use
> an
> > expression to pick the endpoint address.
> >
> > This may be valid or I might be missing something :). Your comments are
> > welcome.
> >
> > Thanks,
> > Supun..
> > --
> > Software Engineer, WSO2 Inc
> > http://wso2.org
> > http://supunk.blogspot.com
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
> For additional commands, e-mail: dev-help@synapse.apache.org
>
>


-- 
Ruwan Linton
Senior Software Engineer & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Re: Endpoint address dynamic look up

Posted by indika kumara <in...@gmail.com>.
Supun

Could you extend this to enable looking up EPR from a routing table
defined in the registry as an XML.?

Thanks
Indika

On Fri, Jun 26, 2009 at 11:00 AM, Supun Kamburugamuva<su...@gmail.com> wrote:
> Hi all,
>
> I got this idea and I thought of asking it from the community.
>
> I think it is better to have the flexibility to change an endpoint address
> dynamically. At the moment we can achieve this with DefaultEndpoint or using
> a send mediator without an Endpoint. In both these cases we can change the
> address by using the header mediator to set the To. Or we can use the
> incoming To address without using a HeaderMediator.
>
> But if we want to change the address of a loadbalance or failover endpoint
> dynamically, this won't work. So my idea is to allow the endpoints to use an
> expression to pick the endpoint address.
>
> This may be valid or I might be missing something :). Your comments are
> welcome.
>
> Thanks,
> Supun..
> --
> Software Engineer, WSO2 Inc
> http://wso2.org
> http://supunk.blogspot.com
>
>
>

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


Re: Endpoint address dynamic look up

Posted by Ruwan Linton <ru...@gmail.com>.
Supun,

Endpoint is a static entry and it declares a set of attributes of the
relevant EPR... In theory you shouldn't be mixing the dynam ic content with
the endpoint declaration.

Lets consider the following scenario, an endpoint referring to EPR called A,
having security with a given policy B, so it is not possible to dynamically
change the EPR because it might affect the other properties associted with
the endpoint.

I am sorry, but I don't see the value addition of the endpoint being dynamic
in the case of loadbalancing and failover... Please note that you have the
capability of dynamic loadbalancing with synapse which is a different case.
Can you please explain the value additon of this dynamic endpoint address
scenario....

I think the existing behavior is fine. :-)

Thanks,
Ruwan


On Fri, Jun 26, 2009 at 11:00 AM, Supun Kamburugamuva <su...@gmail.com>wrote:

> Hi all,
>
> I got this idea and I thought of asking it from the community.
>
> I think it is better to have the flexibility to change an endpoint address
> dynamically. At the moment we can achieve this with DefaultEndpoint or using
> a send mediator without an Endpoint. In both these cases we can change the
> address by using the header mediator to set the To. Or we can use the
> incoming To address without using a HeaderMediator.
>
> But if we want to change the address of a loadbalance or failover endpoint
> dynamically, this won't work. So my idea is to allow the endpoints to use an
> expression to pick the endpoint address.
>
> This may be valid or I might be missing something :). Your comments are
> welcome.
>
> Thanks,
> Supun..
>
> --
> Software Engineer, WSO2 Inc
> http://wso2.org
> http://supunk.blogspot.com
>
>
>


-- 
Ruwan Linton
Senior Software Engineer & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Re: Endpoint address dynamic look up

Posted by Supun Kamburugamuva <su...@gmail.com>.
Hi Saliya,

On Fri, Jun 26, 2009 at 1:29 PM, Saliya Ekanayake <es...@gmail.com> wrote:

>
> Hi Supun,
>
> Does this idea means that the address is extracted from the incoming
> message based on an expression?


Yes.


> If this is the case, IMHO the LB or FO should be transparent to the user.
> Therefore, the user should not know the inside details.
>

Sorry I didn't get you..

Thanks
Supun.

>
> Thanks,
> Saliya
>
>
> On Fri, Jun 26, 2009 at 11:00 AM, Supun Kamburugamuva <su...@gmail.com>wrote:
>
>> Hi all,
>>
>> I got this idea and I thought of asking it from the community.
>>
>> I think it is better to have the flexibility to change an endpoint address
>> dynamically. At the moment we can achieve this with DefaultEndpoint or using
>> a send mediator without an Endpoint. In both these cases we can change the
>> address by using the header mediator to set the To. Or we can use the
>> incoming To address without using a HeaderMediator.
>>
>> But if we want to change the address of a loadbalance or failover endpoint
>> dynamically, this won't work. So my idea is to allow the endpoints to use an
>> expression to pick the endpoint address.
>>
>> This may be valid or I might be missing something :). Your comments are
>> welcome.
>>
>> Thanks,
>> Supun..
>>
>> --
>> Software Engineer, WSO2 Inc
>> http://wso2.org
>> http://supunk.blogspot.com
>>
>>
>>
>
>
> --
> Saliya Ekanayake
> http://www.esaliya.blogspot.com
> http://www.esaliya.wordpress.com
>



-- 
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com

Re: Endpoint address dynamic look up

Posted by Supun Kamburugamuva <su...@gmail.com>.
On Fri, Jun 26, 2009 at 2:00 PM, Paul Fremantle <pz...@gmail.com> wrote:

> Supun
>
> Doesn't the router mediator do this?
>

mmm, I'm not refering that kind of filtering. In router we know all the
destination addresses when we configure synapse. But in this case the
address may be coming in the body. We want to extract it and send the
message accordingly.

Thanks,
Supum..

>
> Paul
>
> On Fri, Jun 26, 2009 at 9:29 AM, Saliya Ekanayake<es...@gmail.com>
> wrote:
> >
> > Hi Supun,
> >
> > Does this idea means that the address is extracted from the incoming
> message
> > based on an expression? If this is the case, IMHO the LB or FO should be
> > transparent to the user. Therefore, the user should not know the inside
> > details.
> >
> > Thanks,
> > Saliya
> >
> > On Fri, Jun 26, 2009 at 11:00 AM, Supun Kamburugamuva <supun06@gmail.com
> >
> > wrote:
> >>
> >> Hi all,
> >>
> >> I got this idea and I thought of asking it from the community.
> >>
> >> I think it is better to have the flexibility to change an endpoint
> address
> >> dynamically. At the moment we can achieve this with DefaultEndpoint or
> using
> >> a send mediator without an Endpoint. In both these cases we can change
> the
> >> address by using the header mediator to set the To. Or we can use the
> >> incoming To address without using a HeaderMediator.
> >>
> >> But if we want to change the address of a loadbalance or
> failover endpoint
> >> dynamically, this won't work. So my idea is to allow the endpoints to
> use an
> >> expression to pick the endpoint address.
> >>
> >> This may be valid or I might be missing something :). Your comments are
> >> welcome.
> >>
> >> Thanks,
> >> Supun..
> >> --
> >> Software Engineer, WSO2 Inc
> >> http://wso2.org
> >> http://supunk.blogspot.com
> >>
> >>
> >
> >
> >
> > --
> > Saliya Ekanayake
> > http://www.esaliya.blogspot.com
> > http://www.esaliya.wordpress.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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
> For additional commands, e-mail: dev-help@synapse.apache.org
>
>


-- 
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com

Re: Endpoint address dynamic look up

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

Doesn't the router mediator do this?

Paul

On Fri, Jun 26, 2009 at 9:29 AM, Saliya Ekanayake<es...@gmail.com> wrote:
>
> Hi Supun,
>
> Does this idea means that the address is extracted from the incoming message
> based on an expression? If this is the case, IMHO the LB or FO should be
> transparent to the user. Therefore, the user should not know the inside
> details.
>
> Thanks,
> Saliya
>
> On Fri, Jun 26, 2009 at 11:00 AM, Supun Kamburugamuva <su...@gmail.com>
> wrote:
>>
>> Hi all,
>>
>> I got this idea and I thought of asking it from the community.
>>
>> I think it is better to have the flexibility to change an endpoint address
>> dynamically. At the moment we can achieve this with DefaultEndpoint or using
>> a send mediator without an Endpoint. In both these cases we can change the
>> address by using the header mediator to set the To. Or we can use the
>> incoming To address without using a HeaderMediator.
>>
>> But if we want to change the address of a loadbalance or failover endpoint
>> dynamically, this won't work. So my idea is to allow the endpoints to use an
>> expression to pick the endpoint address.
>>
>> This may be valid or I might be missing something :). Your comments are
>> welcome.
>>
>> Thanks,
>> Supun..
>> --
>> Software Engineer, WSO2 Inc
>> http://wso2.org
>> http://supunk.blogspot.com
>>
>>
>
>
>
> --
> Saliya Ekanayake
> http://www.esaliya.blogspot.com
> http://www.esaliya.wordpress.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

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


Re: Endpoint address dynamic look up

Posted by Saliya Ekanayake <es...@gmail.com>.
Hi Supun,

Does this idea means that the address is extracted from the incoming message
based on an expression? If this is the case, IMHO the LB or FO should be
transparent to the user. Therefore, the user should not know the inside
details.

Thanks,
Saliya

On Fri, Jun 26, 2009 at 11:00 AM, Supun Kamburugamuva <su...@gmail.com>wrote:

> Hi all,
>
> I got this idea and I thought of asking it from the community.
>
> I think it is better to have the flexibility to change an endpoint address
> dynamically. At the moment we can achieve this with DefaultEndpoint or using
> a send mediator without an Endpoint. In both these cases we can change the
> address by using the header mediator to set the To. Or we can use the
> incoming To address without using a HeaderMediator.
>
> But if we want to change the address of a loadbalance or failover endpoint
> dynamically, this won't work. So my idea is to allow the endpoints to use an
> expression to pick the endpoint address.
>
> This may be valid or I might be missing something :). Your comments are
> welcome.
>
> Thanks,
> Supun..
>
> --
> Software Engineer, WSO2 Inc
> http://wso2.org
> http://supunk.blogspot.com
>
>
>


-- 
Saliya Ekanayake
http://www.esaliya.blogspot.com
http://www.esaliya.wordpress.com