diff --git a/com.ibm.streamsx.messaging/.classpath b/com.ibm.streamsx.messaging/.classpath index 2f2d0b4..0a4b1f3 100644 --- a/com.ibm.streamsx.messaging/.classpath +++ b/com.ibm.streamsx.messaging/.classpath @@ -3,15 +3,12 @@ - - - - - + + diff --git a/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/jms/JMSConnectionHelper.java b/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/jms/JMSConnectionHelper.java index 22f53be..96bf7d0 100644 --- a/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/jms/JMSConnectionHelper.java +++ b/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/jms/JMSConnectionHelper.java @@ -387,10 +387,14 @@ private boolean connect(boolean isProducer) throws JMSException { // Create connection. if (userPrincipal != null && !userPrincipal.isEmpty() && - userCredential != null && !userCredential.isEmpty() ) + userCredential != null && !userCredential.isEmpty() ) { + tracer.log(TraceLevel.TRACE, "Create connection for user: " + userPrincipal); //$NON-NLS-1$ setConnect(connFactory.createConnection(userPrincipal, userCredential)); - else + } + else { + tracer.log(TraceLevel.TRACE, "Create connection with empty credentials"); //$NON-NLS-1$ setConnect(connFactory.createConnection()); + } getConnect().setExceptionListener (this); // Create session from connection; false means diff --git a/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/AutoRecoveryListener.java b/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/AutoRecoveryListener.java index a88726f..fa0e535 100644 --- a/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/AutoRecoveryListener.java +++ b/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/AutoRecoveryListener.java @@ -22,4 +22,9 @@ public void handleRecovery(Recoverable arg0) { isConnected.setValue(1); } + @Override + public void handleRecoveryStarted(Recoverable arg0) { + trace.log(TraceLevel.INFO, "Starting to recover RabbitMQ connection."); //$NON-NLS-1$ + } + } diff --git a/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/RabbitMQConnectionExceptionHandler.java b/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/RabbitMQConnectionExceptionHandler.java index 99bbc6f..65e5b28 100644 --- a/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/RabbitMQConnectionExceptionHandler.java +++ b/com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/RabbitMQConnectionExceptionHandler.java @@ -50,12 +50,6 @@ public void handleConsumerException(Channel arg0, Throwable arg1, Consumer arg2, trace.log(TraceLevel.ERROR, Messages.getString("SEE_STDOUT_FOR_FULL_STACK_TRACE", arg1.getMessage())); //$NON-NLS-1$ } - @Override - public void handleFlowListenerException(Channel arg0, Throwable arg1) { - arg1.printStackTrace(); - trace.log(TraceLevel.ERROR, Messages.getString("SEE_STDOUT_FOR_FULL_STACK_TRACE", arg1.getMessage())); //$NON-NLS-1$ - } - @Override public void handleReturnListenerException(Channel arg0, Throwable arg1) { arg1.printStackTrace(); diff --git a/com.ibm.streamsx.messaging/info.xml b/com.ibm.streamsx.messaging/info.xml index 784e785..6952170 100644 --- a/com.ibm.streamsx.messaging/info.xml +++ b/com.ibm.streamsx.messaging/info.xml @@ -684,7 +684,7 @@ The <attribute> element has three possible attributes: * composite types * xml - 5.3.10 + 5.3.11 4.2.0.0 diff --git a/com.ibm.streamsx.messaging/pom.xml b/com.ibm.streamsx.messaging/pom.xml index 733df9a..9ba8cd1 100644 --- a/com.ibm.streamsx.messaging/pom.xml +++ b/com.ibm.streamsx.messaging/pom.xml @@ -6,7 +6,7 @@ com.ibm.streamsx.messaging streamsx.messaging jar - 5.3.10 + 5.3.11 com.ibm.streamsx.messaging @@ -25,20 +25,20 @@ + + org.apache.geronimo.specs + geronimo-jms_1.1_spec + 1.1.1 + org.apache.kafka kafka-clients 0.10.0.0 - - org.apache.activemq - activemq-client - 5.14.1 - com.rabbitmq amqp-client - 3.6.2 + 5.4.3 org.eclipse.paho