You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2016/03/23 18:46:53 UTC

qpid-jms git commit: QPIDJMS-160 Ensure the executor thread starts right away

Repository: qpid-jms
Updated Branches:
  refs/heads/master 1207e7011 -> dd97edb72


QPIDJMS-160 Ensure the executor thread starts right away

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/dd97edb7
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/dd97edb7
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/dd97edb7

Branch: refs/heads/master
Commit: dd97edb729e1c4d223d2dd9cbc7da79e75c5c314
Parents: 1207e70
Author: Timothy Bish <ta...@gmail.com>
Authored: Wed Mar 23 13:46:14 2016 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Wed Mar 23 13:46:14 2016 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/qpid/jms/JmsConnection.java     | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/dd97edb7/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java
index 8834bd9..a26517b 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsConnection.java
@@ -130,6 +130,14 @@ public class JmsConnection implements AutoCloseable, Connection, TopicConnection
             }
         });
 
+        // We need to start the core thread in order for it to prevent JVM shutdown as our
+        // single non-daemon thread.
+        executor.execute(new Runnable() {
+            @Override
+            public void run() {
+            }
+        });
+
         this.provider = provider;
         this.provider.setProviderListener(this);
         try {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org