Service Registry 3.1 Update 1 Developer's Guide

Adding Classifications: Example

For an example of adding classifications to an object, see JAXRPublishObject.java in the directory install/registry-samples/publish-object/src. This example creates an organization named GenericOrg and adds a number of objects to it.

ProcedureTo Run the JAXRPublishObject Example

  1. Go to the directory install/registry-samples/publish-object.

  2. Type the following command:


    Ant-base/ant run
    

    The output of the run target looks something like this:


    run:
         [java] Query URL is http://localhost:6480/soar/registry/soap
         [java] Publish URL is http://localhost:6480/soar/registry/soap
         [java] Created connection to registry
         [java] Established security credentials
         [java] Got registry service, query manager, and life cycle manager
         [java] Organization URN is urn:uuid:f23cffcd-23d2-4171-ba41-f2d1547158f8
         [java] External classification scheme NASDAQ saved: URN is 
    urn:devguide:samples:ClassificationScheme:NASDAQ
         [java] Organization saved