This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Configuration for Query Processors

Query Processors are one of many well-defined extension points supported by the WSO2 Governance Registry. Read more on Supported Extension Points for a complete list of extension points supported by WSO2 Governance Registry.

To add a custom query processor to Governance Registry add the following configuration at $GREG_HOME/repository/conf/registry.xml. 

<queryProcessor>
    <processor>org.wso2.carbon.registry.samples.processor.SampleQueryProcessor</processor>
    <queryType>application/vnd.wso2.sample.query</queryType>
</queryProcessor>

The attributes of the given above configuration can be defined as below.

  1. processor - The fully qualified name of the class implementing the org.wso2.carbon.registry.core.dataaccess.QueryProcessor interface. You can have more than one query processor having the same class.

  2. queryType - The media type of the query that's executed must be unique.

It is important to restart the server after a configuration change.

See also Query Processor Sample.