diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2006-10-11 14:47:50 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2006-10-11 14:47:50 +0000 |
| commit | a3d3d2ccc0ccb5d4b857be93c4774ac1bddd0aeb (patch) | |
| tree | 448dcff24f8c4e3078a2176f2ea490f67e1d5dfb /qpid/java/client/src | |
| parent | deff1e751c9d0c1baec2d0b7a9e5b88d5668a861 (diff) | |
| download | qpid-python-a3d3d2ccc0ccb5d4b857be93c4774ac1bddd0aeb.tar.gz | |
Added extra debug output when failover fails.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@462820 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/src')
| -rw-r--r-- | qpid/java/client/src/org/apache/qpid/client/protocol/AMQProtocolHandler.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/qpid/java/client/src/org/apache/qpid/client/protocol/AMQProtocolHandler.java b/qpid/java/client/src/org/apache/qpid/client/protocol/AMQProtocolHandler.java index 70f3188166..ebd5abda92 100644 --- a/qpid/java/client/src/org/apache/qpid/client/protocol/AMQProtocolHandler.java +++ b/qpid/java/client/src/org/apache/qpid/client/protocol/AMQProtocolHandler.java @@ -138,7 +138,7 @@ public class AMQProtocolHandler extends IoHandlerAdapter // we only add the SSL filter where we have an SSL connection if (_useSSL) { - //todo FIXME: Bogus context cannot be used in production. + //FIXME: Bogus context cannot be used in production. SSLFilter sslFilter = new SSLFilter(BogusSSLContextFactory.getInstance(false)); sslFilter.setUseClientMode(true); session.getFilterChain().addBefore("protocolFilter", "ssl", sslFilter); @@ -190,6 +190,11 @@ public class AMQProtocolHandler extends IoHandlerAdapter { _logger.info("Failover not allowed by policy."); + if (_logger.isDebugEnabled()) + { + _logger.debug(_connection.getFailoverPolicy().toString()); + } + if (_failoverState != FailoverState.IN_PROGRESS) { _logger.info("sessionClose() not allowed to failover"); @@ -305,7 +310,7 @@ public class AMQProtocolHandler extends IoHandlerAdapter _logger.debug("Method frame received: " + frame); } - final AMQMethodEvent evt = new AMQMethodEvent(frame.channel, (AMQMethodBody)frame.bodyFrame, _protocolSession); + final AMQMethodEvent evt = new AMQMethodEvent(frame.channel, (AMQMethodBody) frame.bodyFrame, _protocolSession); try { boolean wasAnyoneInterested = false; @@ -429,7 +434,7 @@ public class AMQProtocolHandler extends IoHandlerAdapter public AMQMethodEvent syncWrite(AMQFrame frame, Class responseClass) throws AMQException { return writeCommandFrameAndWaitForReply(frame, - new SpecificMethodFrameListener(frame.channel, responseClass)); + new SpecificMethodFrameListener(frame.channel, responseClass)); } /** @@ -438,7 +443,7 @@ public class AMQProtocolHandler extends IoHandlerAdapter * consumer(s) on that session. * * @param channelId the channel id of the session - * @param session the session instance. + * @param session the session instance. */ public void addSessionByChannel(int channelId, AMQSession session) { |
