Package org.exolab.jms.net.connector

Examples of org.exolab.jms.net.connector.ConnectException


        URI acceptURI = info.getURI();
        synchronized (_acceptors) {
            acceptor = (VMManagedConnectionAcceptor) _acceptors.get(acceptURI);
        }
        if (acceptor == null) {
            throw new ConnectException("Connection refused, URI=" + acceptURI);
        }
        return acceptor.accept(principal, info, client, uri);
    }
View Full Code Here


        ManagedConnectionAcceptorListener listener;
        synchronized (this) {
            listener = _listener;
        }
        if (listener == null) {
            throw new ConnectException("Connection refused, URI=" + _uri);
        }
        listener.accepted(this, connection);
        return invoker;
    }
View Full Code Here

            String name = getDisplayName() + "-Multiplexer";
            _multiplexThread = new Thread(getThreadGroup(), _multiplexer,
                                          name);
            _multiplexThread.start();
        } catch (IOException exception) {
            throw new ConnectException("Failed to start multiplexer",
                                       exception);
        }
    }
View Full Code Here

            return createSocket(host, port);
        } catch (Exception exception) { // IOException, SecurityException
            String msg = "Failed to connect to " + host + ":" + port;
            _log.debug(msg, exception);
            if (exception instanceof java.net.ConnectException) {
                throw new ConnectException(msg, exception);
            }
            throw new ResourceException(msg, exception);
        }
    }
View Full Code Here

        try {
            registry = LocateRegistry.getRegistry(info.getHost(),
                                                  info.getPort());
        } catch (RemoteException exception) {
            throw new ConnectException("Failed to get registry"
                                       + ", host=" + info.getHost()
                                       + ", port=" + info.getPort(),
                                       exception);
        }

        String name = RegistryHelper.getName(_remoteURI);
        RMIInvokerFactory factory;
        try {
            factory = (RMIInvokerFactory) registry.lookup(name);
        } catch (RemoteException exception) {
            throw new ConnectException("Failed to lookup connection proxy"
                                       + ", host=" + info.getHost()
                                       + ", port=" + info.getPort(),
                                       exception);
        } catch (NotBoundException exception) {
            throw new ConnectException("Connection proxy=" + name
                                       + " not bound in "
                                       + "registry, host=" + info.getHost()
                                       + ", port=" + info.getPort(),
                                       exception);
        }
View Full Code Here

        final URI uri = info.getURI();
        try {
            _endpoint = new HTTPEndpoint(info);
        } catch (IOException exception) {
            _log.debug(exception, exception);
            throw new ConnectException("Failed to connect to URI="
                                       + info.getURI(), exception);
        }
        _remoteURI = URIHelper.convertHostToAddress(uri);

        try {
View Full Code Here

TOP

Related Classes of org.exolab.jms.net.connector.ConnectException

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.