Querying Data from a Registry

So far in the chapter, you've learned how to save information about an organization into a registry. In this section, you will learn to write an application that queries a registry for information about organizations.

The application you will write will be named MyRegistryQuery.java. It will take a string as the parameter and then search the registry for all organizations that have the specified string in their names.

Similar to the MyOrganizationPublisher application, you will import the necessary classes, create a connect method to connect to the registry, and create a runQuery method to do the actual querying on the registry.

Creating the MyRegistryQuery.java Application

To create the MyRegistryQuery application, ...

Get Java™ APIs for XML Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.