Skip to content

Commit 045bb7d

Browse files
authored
Merge pull request #349 from IBMStreams/develop
Merge latest changes to master
2 parents 2b08d0b + d5c0325 commit 045bb7d

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

com.ibm.streamsx.messaging/.classpath

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
<classpathentry kind="src" output="impl/java/bin" path="impl/java/src"/>
44
<classpathentry exported="true" kind="con" path="com.ibm.streams.java/com.ibm.streams.operator"/>
55
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6-
<classpathentry kind="lib" path="opt/downloaded/activemq-client-5.14.1.jar"/>
7-
<classpathentry kind="lib" path="opt/downloaded/amqp-client-3.6.2.jar"/>
8-
<classpathentry kind="lib" path="opt/downloaded/geronimo-j2ee-management_1.1_spec-1.0.1.jar"/>
9-
<classpathentry kind="lib" path="opt/downloaded/geronimo-jms_1.1_spec-1.1.1.jar"/>
10-
<classpathentry kind="lib" path="opt/downloaded/hawtbuf-1.11.jar"/>
116
<classpathentry kind="lib" path="opt/downloaded/kafka-clients-0.10.0.0.jar"/>
127
<classpathentry kind="lib" path="opt/downloaded/lz4-1.3.0.jar"/>
138
<classpathentry kind="lib" path="opt/downloaded/org.eclipse.paho.client.mqttv3-1.0.1.jar"/>
149
<classpathentry kind="lib" path="opt/downloaded/slf4j-api-1.7.21.jar"/>
10+
<classpathentry kind="lib" path="opt/downloaded/geronimo-jms_1.1_spec-1.1.1.jar"/>
1511
<classpathentry kind="lib" path="opt/downloaded/snappy-java-1.1.2.4.jar"/>
12+
<classpathentry kind="lib" path="opt/downloaded/amqp-client-5.4.3.jar"/>
1613
<classpathentry kind="output" path="impl/java/bin"/>
1714
</classpath>

com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/jms/JMSConnectionHelper.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,14 @@ private boolean connect(boolean isProducer) throws JMSException {
387387

388388
// Create connection.
389389
if (userPrincipal != null && !userPrincipal.isEmpty() &&
390-
userCredential != null && !userCredential.isEmpty() )
390+
userCredential != null && !userCredential.isEmpty() ) {
391+
tracer.log(TraceLevel.TRACE, "Create connection for user: " + userPrincipal); //$NON-NLS-1$
391392
setConnect(connFactory.createConnection(userPrincipal, userCredential));
392-
else
393+
}
394+
else {
395+
tracer.log(TraceLevel.TRACE, "Create connection with empty credentials"); //$NON-NLS-1$
393396
setConnect(connFactory.createConnection());
397+
}
394398
getConnect().setExceptionListener (this);
395399

396400
// Create session from connection; false means

com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/AutoRecoveryListener.java

+5
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@ public void handleRecovery(Recoverable arg0) {
2222
isConnected.setValue(1);
2323
}
2424

25+
@Override
26+
public void handleRecoveryStarted(Recoverable arg0) {
27+
trace.log(TraceLevel.INFO, "Starting to recover RabbitMQ connection."); //$NON-NLS-1$
28+
}
29+
2530
}

com.ibm.streamsx.messaging/impl/java/src/com/ibm/streamsx/messaging/rabbitmq/RabbitMQConnectionExceptionHandler.java

-6
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ public void handleConsumerException(Channel arg0, Throwable arg1, Consumer arg2,
5050
trace.log(TraceLevel.ERROR, Messages.getString("SEE_STDOUT_FOR_FULL_STACK_TRACE", arg1.getMessage())); //$NON-NLS-1$
5151
}
5252

53-
@Override
54-
public void handleFlowListenerException(Channel arg0, Throwable arg1) {
55-
arg1.printStackTrace();
56-
trace.log(TraceLevel.ERROR, Messages.getString("SEE_STDOUT_FOR_FULL_STACK_TRACE", arg1.getMessage())); //$NON-NLS-1$
57-
}
58-
5953
@Override
6054
public void handleReturnListenerException(Channel arg0, Throwable arg1) {
6155
arg1.printStackTrace();

com.ibm.streamsx.messaging/info.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ The &lt;attribute> element has three possible attributes:
684684
* composite types
685685
* xml
686686
</info:description>
687-
<info:version>5.3.10</info:version>
687+
<info:version>5.3.11</info:version>
688688
<info:requiredProductVersion>4.2.0.0</info:requiredProductVersion>
689689
</info:identity>
690690
<info:dependencies/>

com.ibm.streamsx.messaging/pom.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.ibm.streamsx.messaging</groupId>
77
<artifactId>streamsx.messaging</artifactId>
88
<packaging>jar</packaging>
9-
<version>5.3.10</version>
9+
<version>5.3.11</version>
1010
<name>com.ibm.streamsx.messaging</name>
1111
<repositories>
1212
<repository>
@@ -25,20 +25,20 @@
2525
<properties>
2626
</properties>
2727
<dependencies>
28+
<dependency>
29+
<groupId>org.apache.geronimo.specs</groupId>
30+
<artifactId>geronimo-jms_1.1_spec</artifactId>
31+
<version>1.1.1</version>
32+
</dependency>
2833
<dependency>
2934
<groupId>org.apache.kafka</groupId>
3035
<artifactId>kafka-clients</artifactId>
3136
<version>0.10.0.0</version>
3237
</dependency>
33-
<dependency>
34-
<groupId>org.apache.activemq</groupId>
35-
<artifactId>activemq-client</artifactId>
36-
<version>5.14.1</version>
37-
</dependency>
3838
<dependency>
3939
<groupId>com.rabbitmq</groupId>
4040
<artifactId>amqp-client</artifactId>
41-
<version>3.6.2</version>
41+
<version>5.4.3</version>
4242
</dependency>
4343
<dependency>
4444
<groupId>org.eclipse.paho</groupId>

0 commit comments

Comments
 (0)