Package org.apache.jackrabbit.rmi.client

Examples of org.apache.jackrabbit.rmi.client.ClientAdapterFactory


                oos.writeObject(RemoteObject.toStub(remote));
                oos.close();

                ObjectInputStream ois = new ObjectInputStream(
                        new ByteArrayInputStream(buffer.toByteArray()));
                LocalAdapterFactory laf = new ClientAdapterFactory();
                repository =
                    laf.getRepository((RemoteRepository) ois.readObject());
            } catch (Exception e) {
                throw new RepositoryStubException(e.getMessage());
            }
        }
        return repository;
View Full Code Here


                    "Failed to look up the RMI resource " + name, e);
        }
    }

    private Repository getRepository(RemoteRepository remote) {
        return new ClientAdapterFactory().getRepository(remote);
    }
View Full Code Here

                oos.writeObject(RemoteObject.toStub(remote));
                oos.close();

                ObjectInputStream ois = new ObjectInputStream(
                        new ByteArrayInputStream(buffer.toByteArray()));
                LocalAdapterFactory laf = new ClientAdapterFactory();
                repository =
                    laf.getRepository((RemoteRepository) ois.readObject());
            } catch (Exception e) {
                throw new RepositoryStubException(e.getMessage());
            }
        }
        return repository;
View Full Code Here

                    "Failed to look up the RMI resource " + name, e);
        }
    }

    private Repository getRepository(RemoteRepository remote) {
        return new ClientAdapterFactory().getRepository(remote);
    }
View Full Code Here

     * @param iface adapter interface
     * @throws Exception on errors
     */
    private void prepareTests(Class iface) throws Exception {
        remoteFactory = new ServerAdapterFactory();
        localFactory = new ClientAdapterFactory();

        methods = new HashMap();
        Method[] m = iface.getDeclaredMethods();
        for (int i = 0; i < m.length; i++) {
            methods.put(m[i].getName(), m[i]);
View Full Code Here

public class RmiRepositoryFactory {
    @SuppressWarnings("unused")
    private static final Logger log = LoggerFactory.getLogger(RmiRepositoryFactory.class);

    static Repository getRmiRepository(String url) throws MalformedURLException, NotBoundException, RemoteException {
        ClientRepositoryFactory factory = new ClientRepositoryFactory(new ClientAdapterFactory());
        return factory.getRepository(url);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.rmi.client.ClientAdapterFactory

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.