Closing a JMS session does not close underlying Artemis core connection if using an SSL configured connection factory.
Test Code attached. To reproduce:
1- Client code is SimpleRemoteJMSExample.java
2- To build:
export JBOSS_HOME=./jboss-eap-7.1
javac -classpath=./jboss-eap-7.1/bin/client/jboss-client.jar:. *.java
3- Run EAP: ./jboss-eap-7.1/bin/standalone.sh -c standalone-full.xml
4- Run client: ./run.sh
After 60 seconds the following message will display in the JBoss console window:
2020-01-07 15:59:01,958 WARN [org.apache.activemq.artemis.core.client] (Thread-0 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl@29ea055b)) AMQ212037: Connection failure has been detected: AMQ119014: Did not receive data from /127.0.0.1:33381 within the 60,000ms connection TTL. The connection will now be closed. [code=CONNECTION_TIMEDOUT]
5- To switch to non_ssl, edit SimpleRemoteJMSExample.java, and change following two lines:
// 1- Switch between secure an non secure URL
// 2- Switch between secure an non secure connection factory
and rebuild/rerun. with non SSL, issue does not happen
test code/config is available at https://drive.google.com/open?id=1q_tq9rnNtJpiDsmIYsfFDZGrQ0leztoC
- is cloned by
-
ENTMQBR-3434 Can not close underlying artemis connection when using an SSL connection factory
- Closed
- is incorporated by
-
JBEAP-19796 [GSS](7.3.z) Upgrade Artemis from 2.9.0.redhat-00010 to 2.9.0.redhat-00011
- Closed