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 <[email protected]> Authored: Wed Mar 23 13:46:14 2016 -0400 Committer: Timothy Bish <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
