Package org.apache.jackrabbit.rmi.server

Examples of org.apache.jackrabbit.rmi.server.RemoteAdapterFactory


            System.setProperty("java.rmi.server.useCodebaseOnly", "true");

            // try to create remote repository and keep it to ensure it is
            // unexported in the unregister() method
            try {
                RemoteAdapterFactory raf = getRemoteAdapterFactory();
                this.rmiRepository = raf.getRemoteRepository(repository);
            } catch (RemoteException e) {
                RmiRegistrationSupport.this.log(LogService.LOG_ERROR,
                    "Unable to create remote repository.", e);
                return;
            } catch (Exception e) {
View Full Code Here


            System.setProperty("java.rmi.server.useCodebaseOnly", "true");

            // try to create remote repository and keep it to ensure it is
            // unexported in the unregister() method
            try {
                RemoteAdapterFactory raf = getRemoteAdapterFactory();
                this.rmiRepository = raf.getRemoteRepository(repository);
            } catch (RemoteException e) {
                RmiRegistrationSupport.this.log(LogService.LOG_ERROR,
                    "Unable to create remote repository.", e);
                return;
            } catch (Exception e) {
View Full Code Here

            System.setProperty("java.rmi.server.useCodebaseOnly", "true");

            // try to create remote repository and keep it to ensure it is
            // unexported in the unregister() method
            try {
                RemoteAdapterFactory raf = getRemoteAdapterFactory();
                this.rmiRepository = raf.getRemoteRepository(repository);
            } catch (RemoteException e) {
                RmiRegistrationSupport.this.log(LogService.LOG_ERROR,
                    "Unable to create remote repository.", e);
                return;
            } catch (Exception e) {
View Full Code Here

                    + this.localAddress);
        }

        // remote repository
        InitialContext remoteContext = createInitialContext(remoteEnvironment);
        RemoteAdapterFactory factory = new ServerAdapterFactory();
        remote = factory.getRemoteRepository(localRepository);

        // bind remote server
        remoteContext.bind(this.remoteAddress, remote);
    }
View Full Code Here

        if (repository == null) {
            try {
                Repository repo = super.getRepository();
                principal = findKnownPrincipal(repo);

                RemoteAdapterFactory raf = new ServerAdapterFactory();
                remote = raf.getRemoteRepository(repo);

                // Make sure that the remote reference survives serialization
                ByteArrayOutputStream buffer = new ByteArrayOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(buffer);
                oos.writeObject(RemoteObject.toStub(remote));
View Full Code Here

     * @throws ServletException if the repository could not be instantiated
     */
    protected RemoteRepository getRemoteRepository() throws ServletException {
        if (remote == null) {
            try {
                RemoteAdapterFactory factory = getRemoteAdapterFactory();
                remote = factory.getRemoteRepository(new ServletRepository(this));
            } catch (RemoteException e) {
                throw new ServletException(
                        "Failed to create the remote repository reference", e);
            }
        }
View Full Code Here

        if (repository == null) {
            try {
                Repository repo = super.getRepository();
                principal = findKnownPrincipal(repo);

                RemoteAdapterFactory raf = new ServerAdapterFactory();
                remote = raf.getRemoteRepository(repo);

                // Make sure that the remote reference survives serialization
                ByteArrayOutputStream buffer = new ByteArrayOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(buffer);
                oos.writeObject(RemoteObject.toStub(remote));
View Full Code Here

     * @throws ServletException if the repository could not be instantiated
     */
    protected RemoteRepository getRemoteRepository() throws ServletException {
        if (remote == null) {
            try {
                RemoteAdapterFactory factory = getRemoteAdapterFactory();
                remote = factory.getRemoteRepository(new ServletRepository(this));
            } catch (RemoteException e) {
                throw new ServletException(
                        "Failed to create the remote repository reference", e);
            }
        }
View Full Code Here

    @Override
    public synchronized Repository getRepository()
            throws RepositoryStubException {
        if (repository == null) {
            try {
                RemoteAdapterFactory raf = new ServerAdapterFactory();
                remote = raf.getRemoteRepository(super.getRepository());

                // Make sure that the remote reference survives serialization
                ByteArrayOutputStream buffer = new ByteArrayOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(buffer);
                oos.writeObject(RemoteObject.toStub(remote));
View Full Code Here

                    + this.localAddress);
        }

        // remote repository
        InitialContext remoteContext = createInitialContext(remoteEnvironment);
        RemoteAdapterFactory factory = new ServerAdapterFactory();
        remote = factory.getRemoteRepository(localRepository);

        // bind remote server
        remoteContext.bind(this.remoteAddress, remote);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.rmi.server.RemoteAdapterFactory

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.