...
- Execute the
mvn clean install
maven command from thetaggingHandler/src
sample directory. - Copy the
org.wso2.carbon.registry.samples.taggingHandler-5.12.0.jar
into the<GREG_HOME>/repository/components/dropins
directory. - You can also upload handlers through the administration console by clicking Add in the Extensions menu.
Edit the
registry.xml
file which is in<GREG_HOME>/repository/conf
folder and add the following XML snippet:Code Block language xml <handler class="org.wso2.carbon.registry.samples.taggingHandler.CustomTagServiceHandler"> <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher"> <property name="mediaType">application/vnd.wso2-service+xml</property> </filter> </handler>
- You can also add the handler configuration through the administration console.
- Click the Extensions menu and open the Handlers configuration menu.
- Click Add New Handler.
- Add the handler configuration.
See also Configuring Handlers.
- Click the Extensions menu and open the Handlers configuration menu.
- Start the server and go to the admin console. See Running the Product for more information.
- In the Main menu, under Add in the Metadata section, click Service.
- Add a new service.
- You can see that the namespace tag has been added to the resource.