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) {