mirror of https://github.com/apache/activemq.git
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:
parent
c14dc3a06f
commit
7ad152bac8
|
@ -206,7 +206,7 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
|
||||||
protected final LongSequenceGenerator consumerIdGenerator = new LongSequenceGenerator();
|
protected final LongSequenceGenerator consumerIdGenerator = new LongSequenceGenerator();
|
||||||
protected final LongSequenceGenerator producerIdGenerator = new LongSequenceGenerator();
|
protected final LongSequenceGenerator producerIdGenerator = new LongSequenceGenerator();
|
||||||
protected final LongSequenceGenerator deliveryIdGenerator = 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 AtomicBoolean started = new AtomicBoolean(false);
|
||||||
|
|
||||||
protected final CopyOnWriteArrayList<ActiveMQMessageConsumer> consumers = new CopyOnWriteArrayList<ActiveMQMessageConsumer>();
|
protected final CopyOnWriteArrayList<ActiveMQMessageConsumer> consumers = new CopyOnWriteArrayList<ActiveMQMessageConsumer>();
|
||||||
|
@ -253,6 +253,7 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
|
||||||
setBlobTransferPolicy(connection.getBlobTransferPolicy());
|
setBlobTransferPolicy(connection.getBlobTransferPolicy());
|
||||||
this.scheduler=connection.getScheduler();
|
this.scheduler=connection.getScheduler();
|
||||||
this.connectionExecutor=connection.getExecutor();
|
this.connectionExecutor=connection.getExecutor();
|
||||||
|
this.executor = new ActiveMQSessionExecutor(this);
|
||||||
if (connection.isStarted()) {
|
if (connection.isStarted()) {
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue