Class JNDIRemoteRepository

  • All Implemented Interfaces:
    Repository

    @Deprecated(forRemoval=true)
    public class JNDIRemoteRepository
    extends ProxyRepository
    Deprecated, for removal: This API element is subject to removal in a future version.
    RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.

    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
    • Constructor Detail

      • JNDIRemoteRepository

        public JNDIRemoteRepository​(LocalAdapterFactory factory,
                                    Context context,
                                    String location)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a proxy for a remote repository in JNDI.
        Parameters:
        factory - local adapter factory
        context - JNDI context
        location - JNDI location
      • JNDIRemoteRepository

        public JNDIRemoteRepository​(Context context,
                                    String location)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a proxy for the remote repository in JNDI. Uses ClientAdapterFactory as the default local adapter factory.
        Parameters:
        context - JNDI context
        location - JNDI location
      • JNDIRemoteRepository

        public JNDIRemoteRepository​(String location)
                             throws NamingException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a proxy for the remote repository in JNDI. Uses ClientAdapterFactory as the default local adapter factory.
        Parameters:
        location - JNDI location in default context
        Throws:
        NamingException - if the default JNDI context is not available