Service Registry 3 2005Q4 Developer's Guide

Finding Objects by Classification: Examples

For examples of finding objects by classification, see JAXRSearchByClassification.java and JAXRSearchByCountryClassification.java in the directory <INSTALL>/registry/samples/search-classification/src. The first example searches for objects that use the canonical classification scheme SubjectRole, while the other example searches for organizations that use a geographical classification.

ProcedureTo Run the JAXRSearchByClassification and JAXRSearchByCountryClassification Examples

Before You Begin

To obtain results from the JAXRSearchByCountryClassification example, you must publish an object that uses the specified classifications. Run the example in either Adding Classifications: Example or Creating an Organization: Examples first.

Steps
  1. Go to the directory <INSTALL>/registry/samples/search-classification.

  2. Type either of the following commands:


    asant search-class
    asant search-geo
    

    The search-class target typically returns one result. The search-geo target returns results if you have run the run target in Adding Classifications: Example or the pub-org target in Creating an Organization: Examples.