summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2006-11-07 11:32:41 +0000
committerMartin Ritchie <ritchiem@apache.org>2006-11-07 11:32:41 +0000
commit61f050168072317a7d7db48cdb723358d50699ef (patch)
treee0a9fa9721c9bca5813eacf34de98ddbfb471c51 /qpid/java
parented5d48a9d03ffce4519f95204877ffb07f91280a (diff)
downloadqpid-python-61f050168072317a7d7db48cdb723358d50699ef.tar.gz
Added extra logging around InVM failures
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@472069 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/client/src/org/apache/qpid/client/transport/TransportConnection.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/qpid/java/client/src/org/apache/qpid/client/transport/TransportConnection.java b/qpid/java/client/src/org/apache/qpid/client/transport/TransportConnection.java
index b4acbf5bc7..860a2efe59 100644
--- a/qpid/java/client/src/org/apache/qpid/client/transport/TransportConnection.java
+++ b/qpid/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