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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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 Governanace Registry and 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.

  • No labels