Query the registry
Hi,
We are evaluating WSO2 registry in an SOA. I can't find any information on how to execute a query in the registry. According to the specification there should be support for custom query languages via pluggable query processors. Where can I find this feature documented?
As I understand the documentation it should be possible to query the registry via the REST interface? Can you please give an example of this?
Is it possible to use XQuery?
Regards
Per
- Login or register to post comments
- Printer friendly version
- 258 reads











Query the registry
Hi,
Currently, only the SQL queries are supported. But support for other query types can be added using custom queries. In fact, SQL query functionality is also implemented as a query processor. Current documentation does not explain this feature in detail. But you can find examples of using SQL queries via the API in
public void testUserDefinedResourceQuery()
method of the class
https://wso2.org/repos/wso2/trunk/registry/modules/core/src/test/java/org/wso2/registry/jdbc/JDBCRegistryTest.java.
SQL query processor implementation can be considered as a sample for implementing custom query processors.
https://wso2.org/repos/wso2/trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/queries/SQLQueryProcessor.java
Support for XQuery is not implemented in the current version.
Thanks,
Chathura