Ensure executor constructed correctly

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@957005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2010-06-22 20:08:12 +00:00
parent c14dc3a06f
commit 7ad152bac8
1 changed files with 2 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
protected final LongSequenceGenerator consumerIdGenerator = new LongSequenceGenerator();
protected final LongSequenceGenerator producerIdGenerator = new LongSequenceGenerator();
protected final LongSequenceGenerator deliveryIdGenerator = new LongSequenceGenerator();
protected final ActiveMQSessionExecutor executor = new ActiveMQSessionExecutor(this);
protected final ActiveMQSessionExecutor executor;
protected final AtomicBoolean started = new AtomicBoolean(false);
protected final CopyOnWriteArrayList<ActiveMQMessageConsumer> consumers = new CopyOnWriteArrayList<ActiveMQMessageConsumer>();
@ -253,6 +253,7 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
setBlobTransferPolicy(connection.getBlobTransferPolicy());
this.scheduler=connection.getScheduler();
this.connectionExecutor=connection.getExecutor();
this.executor = new ActiveMQSessionExecutor(this);
if (connection.isStarted()) {
start();
}