Package org.apache.qpid.client.protocol

Examples of org.apache.qpid.client.protocol.AMQProtocolSession.closeProtocolSession()


                if (errorCode == AMQConstant.NOT_ALLOWED || (errorCode == AMQConstant.ACCESS_REFUSED))
                {
                    _logger.info("Error :" + errorCode +":"+ Thread.currentThread().getName());

                    // todo ritchiem : Why do this here when it is going to be done in the finally block?
                    session.closeProtocolSession();

                    // todo this is a bit of a fudge (could be conssidered such as each new connection needs a new state manager or at least a fresh state.
                    stateManager.changeState(AMQState.CONNECTION_NOT_STARTED);

                    throw new AMQAuthenticationException(errorCode, (reason == null) ? null : reason.toString());
View Full Code Here


        }
        finally
        {
            // this actually closes the connection in the case where it is not an error.

            session.closeProtocolSession();

            // ritchiem: Doing this though will cause any waiting connection start to be released without being able to
            // see what the cause was.
            stateManager.changeState(AMQState.CONNECTION_CLOSED);
        }
View Full Code Here

        else
        {
            _log.error("Broker requested Protocol [" + body.getVersionMajor() + "-" + body.getVersionMinor()
                + "] which is not supported by this version of the client library");

            session.closeProtocolSession();
        }
    }

    private String getFullSystemInfo()
    {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.