Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M Finkbeiner2012-04-23 19:57:54 +0000
committerRoberto E. Escobar2012-04-23 19:57:54 +0000
commit45c273a67a348bd784b1ce8c25fb6e62a2f770a6 (patch)
tree723860f42f9f3d1a5f74e3b32881154fd2fe3c2b
parent8547f6f7d080ea77db116bf3de207f05bef0c2de (diff)
downloadorg.eclipse.osee-45c273a67a348bd784b1ce8c25fb6e62a2f770a6.tar.gz
org.eclipse.osee-45c273a67a348bd784b1ce8c25fb6e62a2f770a6.tar.xz
org.eclipse.osee-45c273a67a348bd784b1ce8c25fb6e62a2f770a6.zip
bug[ats_094MT]: Update connection node state so that a restart can work.
-rw-r--r--plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java
index b276dbcc365..86dffb78733 100644
--- a/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java
+++ b/plugins/org.eclipse.osee.framework.messaging/src/org/eclipse/osee/framework/messaging/internal/activemq/ConnectionNodeActiveMq.java
@@ -19,6 +19,7 @@ import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.logging.Level;
+
import javax.jms.Connection;
import javax.jms.DeliveryMode;
import javax.jms.ExceptionListener;
@@ -30,6 +31,7 @@ import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TemporaryTopic;
import javax.jms.Topic;
+
import org.apache.activemq.ActiveMQConnectionFactory;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.exception.OseeExceptions;
@@ -50,10 +52,7 @@ import org.eclipse.osee.framework.messaging.services.internal.OseeMessagingStatu
*/
class ConnectionNodeActiveMq implements ConnectionNodeFailoverSupport, MessageListener {
- // private String version;
- // private String sourceId;
private final NodeInfo nodeInfo;
- // private ExecutorService executor;
private Connection connection;
private Session session;
private TemporaryTopic temporaryTopic;
@@ -78,7 +77,7 @@ class ConnectionNodeActiveMq implements ConnectionNodeFailoverSupport, MessageLi
regularListeners = new CompositeKeyHashMap<String, MessageConsumer, OseeMessagingListener>(64, true);
replyListeners = new ConcurrentHashMap<String, OseeMessagingListener>();
}
-
+
@Override
public synchronized void start() throws OseeCoreException {
if (started) {
@@ -312,6 +311,7 @@ class ConnectionNodeActiveMq implements ConnectionNodeFailoverSupport, MessageLi
topicCache.clear();
messageProducerCache.clear();
regularListeners.clear();
+ started = false;
try {
if (session != null) {
session.close();

Back to the top