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
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.
- 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. - 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.