Package org.exolab.jms.net.connector

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


     */
    public ManagedConnection createManagedConnection(Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        if (!(info instanceof TCPSRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + TCPSRequestInfo.class.getName());
        }

        return new TCPSManagedConnection(principal, (TCPSRequestInfo) info);
    }
View Full Code Here


    public ManagedConnectionAcceptor createManagedConnectionAcceptor(
            Authenticator authenticator, ConnectionRequestInfo info)
            throws ResourceException {

        if (!(info instanceof TCPSRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + TCPSRequestInfo.class.getName());
        }

        return new TCPSManagedConnectionAcceptor(authenticator,
                                                 (TCPSRequestInfo) info);
View Full Code Here

        TCPSRequestInfo config = (TCPSRequestInfo) info;
        if (config.getSSLProperties() != null) {
            try {
                SSLHelper.configure(config.getSSLProperties());
            } catch (SecurityException exception) {
                throw new ResourceException(exception);
            }
        }
        return super.createSocket(info);
    }
View Full Code Here

     */
    public ManagedConnection createManagedConnection(Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        if (!(info instanceof SocketRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + SocketRequestInfo.class.getName());
        }

        return new TCPManagedConnection(principal, (SocketRequestInfo) info);
    }
View Full Code Here

    public ManagedConnectionAcceptor createManagedConnectionAcceptor(
            Authenticator authenticator, ConnectionRequestInfo info)
            throws ResourceException {

        if (!(info instanceof SocketRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + SocketRequestInfo.class.getName());
        }

        return new TCPManagedConnectionAcceptor(authenticator,
                                                (SocketRequestInfo) info);
View Full Code Here

            throws ResourceException {
        if (listener == null) {
            throw new IllegalArgumentException("Argument 'listener' is null");
        }
        if (_listener != null) {
            throw new ResourceException(
                    "Acceptor already accepting connections at URI=" + _uri);
        }
        synchronized (_acceptors) {
            if (_acceptors.containsKey(_uri)) {
                throw new ResourceException("Cannot accept connections on URI="
                                            + _uri
                                            + ". Address in use.");
            }
            _acceptors.put(_uri, this);
        }
View Full Code Here

        if (_alternativeHost != null) {
            result = new URI(getURI());
            try {
                result.setHost(_alternativeHost);
            } catch (URI.MalformedURIException exception) {
                throw new ResourceException(exception);
            }
        }
        return result;
    }
View Full Code Here

     */
    public ManagedConnection createManagedConnection(Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        if (!(info instanceof URIRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + URIRequestInfo.class.getName());
        }

        return new VMManagedConnection(principal, (URIRequestInfo) info);
    }
View Full Code Here

     */
    public ManagedConnectionAcceptor createManagedConnectionAcceptor(
            Authenticator authenticator, ConnectionRequestInfo info)
            throws ResourceException {
        if (!(info instanceof URIRequestInfo)) {
            throw new ResourceException("Argument 'info' must be of type "
                                        + URIRequestInfo.class.getName());
        }
        return new VMManagedConnectionAcceptor(authenticator,
                                               (URIRequestInfo) info);
    }
View Full Code Here

        if (query != null) {
            Map properties;
            try {
                properties = URIHelper.parseQuery(query);
            } catch (InvalidURIException exception) {
                throw new ResourceException(exception);
            }
            String host = (String) properties.get(ALTERNATIVE_HOST);
            setAlternativeHost(host);
        }
    }
View Full Code Here

TOP

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

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.