Hi Chanika,

Can you please gimme me some pointers to the relevant code blocks which are
responsible for this situation?

Thanks,
Sameera.


On Wed, Dec 18, 2013 at 3:29 PM, Chanika Geeganage <[email protected]> wrote:

> Hi,
>
> This issue was come across when we invoke a rest resource deployed in DSS.
> According to the current implementation it fails to delegate different
> requests for same base URL. For an example lets say we want to have
> following resources in the dataservice config
>
> products/{id}
> products/{id}/name/{name}
>
> According to the current implementation it maintains a map to keep the
> resource info in the deployment time. It keeps a string of the HTTP method
> + the resource name  as the key and the relevant axis2 operation as the
> value. Therefore in the example both resources having the same key and the
> value is replaced by the last one.
>
> So as a solution, a regex for the resource is kept in the map as the key,
> and when we invoke the resource it compares the regex with the request url.
> But this will hit a performance issue, as we have to compile all regex in
> the map each time we invoke resource.
>
> Any input regarding this is appreciated.
>
> Thanks
> --
> Best Regards..
>
> Chanika Geeganage
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Sameera Jayasoma,
Architect,

WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

Lean . Enterprise . Middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to