Package org.exolab.jms.net.connector

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


     */
    public ManagedConnection matchManagedConnections(List connections,
                                                     Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        ManagedConnection result = null;

        if (info instanceof RMIRequestInfo) {
            RMIRequestInfo requestInfo = (RMIRequestInfo) info;
            URI uri = URIHelper.convertHostToAddress(requestInfo.getURI());

View Full Code Here


     */
    public ManagedConnection matchManagedConnections(List connections,
                                                     Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        ManagedConnection result = null;

        if (info instanceof SocketRequestInfo) {
            SocketRequestInfo requestInfo = (SocketRequestInfo) info;
            URI uri = URIHelper.convertHostToAddress(requestInfo.getURI());
            URI altURI = requestInfo.getAlternativeURI();
View Full Code Here

        public void run() {
            while (!_closed) {
                try {
                    Socket socket = _socket.accept();
                    socket.setTcpNoDelay(true);
                    ManagedConnection connection = createManagedConnection(
                            _uri, socket, _authenticator);
                    _listener.accepted(SocketManagedConnectionAcceptor.this,
                                       connection);
                } catch (Exception exception) {
                    if (!_closed) {
View Full Code Here

            // the expected behaviour
        }

        // verify that a connection can be established via the loopback URI
        SocketRequestInfo info = getSocketRequestInfo(loopback);
        ManagedConnection connection = null;
        try {
            connection = createConnection(null, info);
        } catch (Exception exception) {
            fail("Expected connections to " + loopback + " to succeed:" +
                 exception);
        }

        // clean up
        connection.destroy();

        // NB: the ServerSocket doesn't seem to close down under JDK 1.3.1
        //  and 1.4.1 if the accepted sockets aren't closed first.
        // This only happens when the ServerSocket is bound to a single address
        listener.destroy();
View Full Code Here

                new TestInvocationHandler());
        acceptor.accept(listener);

        // create a connection
        List connections = new ArrayList();
        ManagedConnection connection = connection = createConnection(null, info);
        connections.add(connection);

        // verify connection matching
        ManagedConnectionFactory factory = getManagedConnectionFactory();
        ManagedConnection match = null;

        // make sure that the created connection matches the info used
        // to establish it
        match = factory.matchManagedConnections(connections, null, info);
        assertEquals(connection, match);
View Full Code Here

        } catch (ResourceException exception) {
            // the expected behaviour
        }

        // verify that a connection can be established via the alternative URI
        ManagedConnection connection = null;
        try {
            connection = createConnection(null, successInfo);
        } catch (Exception exception) {
            fail("Expected connections to " + successURI + " to succeed:" +
                 exception);
        }

        // clean up
        connection.destroy();
        acceptor.close();
    }
View Full Code Here

     */
    public ManagedConnection matchManagedConnections(List connections,
                                                     Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        ManagedConnection result = null;

        if (info instanceof URIRequestInfo) {
            URIRequestInfo requestInfo = (URIRequestInfo) info;
            URI uri = requestInfo.getURI();
            Iterator iterator = connections.iterator();
View Full Code Here

     */
    public ManagedConnection matchManagedConnections(List connections,
                                                     Principal principal,
                                                     ConnectionRequestInfo info)
            throws ResourceException {
        ManagedConnection result = null;

        if (info instanceof HTTPRequestInfo) {
            HTTPRequestInfo requestInfo = (HTTPRequestInfo) info;
            URI uri = URIHelper.convertHostToAddress(requestInfo.getURI());
            Iterator iterator = connections.iterator();
View Full Code Here

TOP

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

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.