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 | f071563aaab0d853b366423c6c714dcf9d01a33b (patch) | |
tree | 6a553c45dc5b7535d3c5a0375f3fced2973f7e42 /java/client/src | |
parent | c2a8f493b4d87c71dc04a432e686e2d9151a393f (diff) | |
download | qpid-python-f071563aaab0d853b366423c6c714dcf9d01a33b.tar.gz |
Added extra logging around InVM failures
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@472069 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src')
-rw-r--r-- | java/client/src/org/apache/qpid/client/transport/TransportConnection.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/java/client/src/org/apache/qpid/client/transport/TransportConnection.java b/java/client/src/org/apache/qpid/client/transport/TransportConnection.java index b4acbf5bc7..860a2efe59 100644 --- a/java/client/src/org/apache/qpid/client/transport/TransportConnection.java +++ b/java/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 |