Miyuru,

In general +1, let me refine the idea a bit more.

Most of the time, users will need to extract part of the URL path, than the
complete path, so it is better if we can make it a regex so that it could
extract any part of the URL path.

<address uri="http://x.x.x.x:yyyy/@{regex, expression}"

Thanks,
Ruwan

On Thu, Apr 29, 2010 at 5:44 PM, Miyuru <[email protected]> wrote:

> Hi all,
>
> This mail is regarding https://issues.apache.org/jira/browse/SYNAPSE-567.
> Currently when we defining leaf endpoints of loadbalance/failover endpoint
> we have to explicitly define full url of the endpoint.
> However in most loadbalance/failover scenarios endpoints are like
> {IP_X}:{PORT_A}/services/MyService
> {IP_Y}:{PORT_B}/services/MyService
> {IP_Z}:{PORT_C}/services/MyService
>
>  Proposed solution is, configure addresss endpoint like this
>
> <endpoint>
>     <address uri="https://localhost:8852/$INCOMING_URL_PATH";>
>     </address>
> </endpoint>
>
> and replace path of the url ("services/MyService") with $INCOMING_URL_PATH.
> Is this a proper solution? Else we can upgrade default endpoint to rewrite
> address using regular expression which is more flexible solution.
>
> Any ideas?
>
> Thanks,
> --
> Miyuru Daminda Wanninayaka
> Software Engineer - WSO2 Inc.
>



-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: [email protected]; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Reply via email to