else {
if (spoolQueue == null) {
log.warn("Connection: " + connectionInfo.getClientId() + " is a slow consumer");
String spoolName = brokerConnector.getBrokerInfo().getBrokerName() + "_" + connectionInfo.getClientId();
try {
spoolQueue = new SpooledBoundedActiveMQMessageQueue(brokerConnector.getBrokerContainer().getBroker()
.getTempDir(), spoolName);
final SpooledBoundedActiveMQMessageQueue bpq = spoolQueue;
ThreadedExecutor exec = new ThreadedExecutor();
exec.execute(new Runnable() {
public void run() {
while (!closed.get()) {
try {
Packet packet = bpq.dequeue();
if (packet != null) {
dispatchToClient(packet);
}
}
catch (InterruptedException e) {