Package org.apache.jackrabbit.rmi.remote

Examples of org.apache.jackrabbit.rmi.remote.RemoteRepository


     * @throws RemoteException       on RMI errors
     */
    public synchronized Repository getRepository(String url) throws
            ClassCastException, MalformedURLException,
            NotBoundException, RemoteException {
        RemoteRepository remote = (RemoteRepository) Naming.lookup(url);
        return factory.getRepository(remote);
    }
View Full Code Here


     */
    public void testRepository() throws Exception {
        prepareTests(Repository.class);

        Repository repository = (Repository) mock;
        RemoteRepository remote = remoteFactory.getRemoteRepository(repository);
        Repository local = localFactory.getRepository(remote);

        runTests(local);
    }
View Full Code Here

     * @throws RemoteException       on RMI errors
     */
    public synchronized Repository getRepository(String url) throws
            ClassCastException, MalformedURLException,
            NotBoundException, RemoteException {
        RemoteRepository remote = (RemoteRepository) Naming.lookup(url);
        return factory.getRepository(remote);
    }
View Full Code Here

     */
    public void testRepository() throws Exception {
        prepareTests(Repository.class);

        Repository repository = (Repository) mock;
        RemoteRepository remote = remoteFactory.getRemoteRepository(repository);
        Repository local = localFactory.getRepository(remote);

        runTests(local);
    }
View Full Code Here

                    result = (Repository) repoObject;
                    log.info("Acquired Repository '" + repositoryName
                        + "' via JNDI");

                } else if (repoObject instanceof RemoteRepository) {
                    RemoteRepository remoteRepo = (RemoteRepository) repoObject;
                    LocalAdapterFactory laf = getLocalAdapterFactory();
                    result = laf.getRepository(remoteRepo);
                    log.info("Acquired RemoteRepository '" + repositoryName
                        + "' via JNDI");
View Full Code Here

    if (log.isDebugEnabled()) {
      log.debug("connecting to jndi server at " + url);
    }
    InitialContext iCtx = new InitialContext();
    ClientAdapterFactory adapter = new ClientAdapterFactory();
    RemoteRepository remote = (RemoteRepository) iCtx.lookup(url);
    Repository repo = adapter.getRepository(remote);
    CommandHelper.setRepository(ctx, repo, "jndi " + url);
    return false;
  }
View Full Code Here

     */
    public void testRepository() throws Exception {
        prepareTests(Repository.class);

        Repository repository = (Repository) mock;
        RemoteRepository remote = remoteFactory.getRemoteRepository(repository);
        Repository local = localFactory.getRepository(remote);

        runTests(local);
    }
View Full Code Here

     * @throws RemoteException       on RMI errors
     */
    public synchronized Repository getRepository(String url) throws
            ClassCastException, MalformedURLException,
            NotBoundException, RemoteException {
        RemoteRepository remote = (RemoteRepository) Naming.lookup(url);
        return factory.getRepository(remote);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.rmi.remote.RemoteRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.