Basic JAXR Classes

You do most of your JAXR work through the RegistryService interface, which provides methods for querying and updating the registry. To get a RegistryService object, you must first use JNDI to locate a ConnectionFactory, then use the factory's createConnection method to create a Connection object. Finally, you use the Connection's getRegistryService method to create a RegistryService object.

Connection

The Connection interface is your link to the underlying registry provider. Usually, you just use the Connection to create a RegistryService object, but you can also perform a few housekeeping chores.

First, you can specify your security credentials with the setCredentials method, which takes a Set object as a parameter. You will ...

Get Java™ Web Services Unleashed 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.