Name
FederatedConnection
Synopsis
public interface FederatedConnection extends javax.xml.registry.Connection { }
A FederatedConnection
is a
Connection
that represents a collection of other
Connection
s, some of which may also be
FederatedConnection
s. The
FederatedConnection
interface defines exactly the
same methods as Connection
, but differs in the
following respects:
It is created by calling the
createFederatedConnection( )
method ofConnectionFactory
, which requires aCollection
containing theConnection
objects that will be grouped together by theFederatedConnection
.When a request is made of a
QueryManager
obtained from aRegistryService
corresponding to aFederatedConnection
, the query is sent to all of the individual registries and the results are combined into a singleBulkResponse
, thus allowing the set of registries to be treated as one.Updates to multiple registries grouped into a
FederatedConnection
are not allowed. An attempt to get a reference to aLifeCycleManager
using the methods of aRegistryService
corresponding to aFederatedConnection
results in anUnsupportedCapabilityException
.
JAXR providers are not required to support
FederatedConnection
s despite the fact that it is a
level 0 feature, although this may change in a future revision of the
JAXR specification. Such providers throw an
UnsupportedCapabilityException
from the
createFederatedConnection( )
method of its
ConnectionFactory
method.
Returned By
ConnectionFactory.createFederatedConnection( )
Get Java Web Services in a Nutshell 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.