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