Name
FederatedConnection
Synopsis
public interface FederatedConnection extends javax.xml.registry.Connection {
}A FederatedConnection is a
Connection that represents a collection of other
Connections, some of which may also be
FederatedConnections. 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 aCollectioncontaining theConnectionobjects that will be grouped together by theFederatedConnection.When a request is made of a
QueryManagerobtained from aRegistryServicecorresponding 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
FederatedConnectionare not allowed. An attempt to get a reference to aLifeCycleManagerusing the methods of aRegistryServicecorresponding to aFederatedConnectionresults in anUnsupportedCapabilityException.
JAXR providers are not required to support
FederatedConnections 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( )
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access