@Version(value="3.1.0")
See: Description
| Interface | Description |
|---|---|
| LocalAdapterFactory | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| Class | Description |
|---|---|
| BrokenRemoteRepository | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientAdapterFactory | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientItem | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientItemDefinition | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientLock | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientLockManager | Deprecated |
| ClientNamespaceRegistry | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientNode | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientNodeDefinition | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientNodeType | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientNodeTypeManager | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientObject | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientObservationManager | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientProperty | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientPropertyDefinition | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientQuery | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientQueryManager | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientQueryResult | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientRepository | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientRepositoryFactory | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientRow | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientSession | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientVersion | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientVersionHistory | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientVersionManager | Deprecated |
| ClientWorkspace | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| ClientXASession | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| SafeClientRepository | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| Exception | Description |
|---|---|
| RemoteRepositoryException | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
| RemoteRuntimeException | Deprecated
RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.
|
This package contains the default client implementation of the transparent JCR-RMI layer. The classes in this package can be used to make a remote JCR-RMI service seem like a local JCR repository.
The contents of this package is designed using two design patterns, Factory and Adapter. All the ClientObject subclasses implement the Adapter pattern to adapt a remote JCR-RMI reference to the corresponding local JCR interface. The Factory pattern is used to centralize the creation and configuration of all adapter instances.
The ClientRepositoryFactory class provides a convenient mechanism for looking up a remote JCR-RMI repository. The factory can be used either directly or as a JNDI object factory.
The following example shows how to use the ClientRepositoryFactory directly:
String name = ...; // The RMI URL of the repository
ClientRepositoryFactory factory = new ClientRepositoryFactory();
Repository repository = factory.getRepository(name);
The ClientRepositoryFactory can also be used via JNDI. The following example settings and code demonstrate how to configure and use the transparent JCR-RMI layer in a Tomcat 5.5 web application:
context.xml:
<Resource name="jcr/Repository" auth="Container"
type="javax.jcr.Repository"
factory="org.apache.jackrabbit.rmi.client.ClientRepositoryFactory"
url="..."/>
web.xml:
<resource-env-ref>
<description>The external content repository</description>
<resource-env-ref-name>jcr/Repository</resource-env-ref-name>
<resource-env-ref-type>javac.jcr.Repository</resource-env-ref-type>
</resource-env-ref>
...SomeServlet.java:
Context initial = new InitialContext();
Context context = (Context) initial.lookup("java:comp/env");
Repository repository = (Repository) context.lookup("jcr/Repository");
Note that in the example above only the context.xml configuration file contains a direct references to the JCR-RMI layer. All other parts of the web application can be implemented using the standard JCR interfaces.
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.