Service Registry 3.1 Developer's Guide

Using Federated Queries: Example

For an example of the use of a federated query, see JAXRQueryFederation.java in the directory INSTALL/registry-samples/query-federation/src. This example performs two queries, a declarative query and a stored query, on every federation it finds (the database provided with the Registry contains only one). Because the federation stored in the Registry database does not have a well-known identifier value, the example uses findObjects to locate the federation.

The declarative query is the query that is performed in Using Declarative Queries: Example. The stored query is the FindAllMyObjects query.

Because the federation in the Registry database has no members, this example cannot perform the queries.

ProcedureTo Run the JAXRQueryFederationExample

  1. Go to the directory INSTALL/registry-samples/query-federation.

  2. Type the following command:


    Ant-base/ant run