org.apache.jackrabbit.rmi.repository
Class JNDIRemoteRepository
java.lang.Object
org.apache.jackrabbit.commons.AbstractRepository
org.apache.jackrabbit.commons.repository.ProxyRepository
org.apache.jackrabbit.rmi.repository.JNDIRemoteRepository
- All Implemented Interfaces:
- Repository
public class JNDIRemoteRepository
- extends ProxyRepository
Proxy for a remote repository bound in JNDI. The configured repository is
looked up from JNDI lazily during each method call. Thus the JNDI entry
does not need to exist when this class is instantiated. The JNDI entry
can also be replaced with another repository during the lifetime of an
instance of this class.
- Since:
- 1.4
Fields inherited from interface javax.jcr.Repository |
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDIRemoteRepository
public JNDIRemoteRepository(LocalAdapterFactory factory,
Context context,
String location)
- Creates a proxy for a remote repository in JNDI.
- Parameters:
factory
- local adapter factorycontext
- JNDI contextlocation
- JNDI location
JNDIRemoteRepository
public JNDIRemoteRepository(Context context,
String location)
- Creates a proxy for the remote repository in JNDI.
Uses
JackrabbitClientAdapterFactory
as the default
local adapter factory.
- Parameters:
context
- JNDI contextlocation
- JNDI location
JNDIRemoteRepository
public JNDIRemoteRepository(String location)
throws NamingException
- Creates a proxy for the remote repository in JNDI.
Uses
JackrabbitClientAdapterFactory
as the default
local adapter factory.
- Parameters:
location
- JNDI location in default context
- Throws:
NamingException
- if the default JNDI context is not available
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.