diff options
author | Martin Ritchie <ritchiem@apache.org> | 2006-11-07 11:32:41 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2006-11-07 11:32:41 +0000 |
commit | d13b60e2a4b33a15f69211d173f17371446d162e (patch) | |
tree | 242850ab26fb5d68a4fac8f2c7703d7253f5bd17 | |
parent | 284b72f720fb550d14fcbcdb4db4996fc5cca453 (diff) | |
download | qpid-python-d13b60e2a4b33a15f69211d173f17371446d162e.tar.gz |
Added extra logging around InVM failures
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/java@472069 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | client/src/org/apache/qpid/client/transport/TransportConnection.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/client/src/org/apache/qpid/client/transport/TransportConnection.java b/client/src/org/apache/qpid/client/transport/TransportConnection.java index b4acbf5bc7..860a2efe59 100644 --- a/client/src/org/apache/qpid/client/transport/TransportConnection.java +++ b/client/src/org/apache/qpid/client/transport/TransportConnection.java @@ -114,7 +114,17 @@ public class TransportConnection public IoConnector newSocketConnector() { SocketConnector result; - result = new SocketConnector(); // non-blocking connector + //FIXME - this needs to be sorted to use the new Mina MultiThread SA. + if (Boolean.getBoolean("qpidnio")) + { + _logger.warn("Using Qpid NIO - DISABLED"); +// result = new org.apache.qpid.nio.SocketConnector(); // non-blocking connector + } +// else + { + _logger.warn("Using Mina NIO"); + result = new SocketConnector(); // non-blocking connector + } // Don't have the connector's worker thread wait around for other connections (we only use // one SocketConnector per connection at the moment anyway). This allows short-running @@ -198,9 +208,9 @@ public class TransportConnection } catch (Exception e) { - _logger.info("Unable to create InVM Qpid.AMQP on port " + port); + _logger.info("Unable to create InVM Qpid.AMQP on port " + port + ". Because: " + e.getCause()); _logger.error(e); - throw new AMQVMBrokerCreationException(port, "Unable to create InVM Qpid.AMQP on port " + port); + throw new AMQVMBrokerCreationException(port, e.getCause() + " Stopped InVM Qpid.AMQP creation"); } _acceptor.bind(pipe, provider); @@ -211,7 +221,7 @@ public class TransportConnection catch (IOException e) { _logger.error(e); - throw new AMQVMBrokerCreationException(port, "Unable to create InVM Qpid.AMQP on port " + port); + throw new AMQVMBrokerCreationException(port, e.getCause() + " Stopped binding of InVM Qpid.AMQP"); } } else |