Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Execute the mvn clean install maven command from the taggingHandler/src sample directory.
  2. Copy the org.wso2.carbon.registry.samples.taggingHandler-5.12.0.jar into the <GREG_HOME>/repository/components/dropins directory.
  3. You can also upload handlers through the administration console by clicking Add in the Extensions menu.
     
  4. Edit the registry.xml file which is in <GREG_HOME>/repository/conf folder and add the following XML snippet:

    Code Block
    languagexml
    <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>
  5. You can also add the handler configuration through the administration console.
    1. Click the Extensions menu and open the Handlers configuration menu.
       
    2. Click Add New Handler.
       
    3. Add the handler configuration. 

      See also Configuring Handlers.
  6. Start the server and go to the admin console. See Running the Product for more information.
  7. In the Main menu, under Add in the Metadata section, click Service.
  8. Add a new service.
     
  9. You can see that the namespace tag has been added to the resource.