// ensure queue already created
BindOk bindOk = template.execute(new TestChannelCallback());
Assert.assertNotNull(bindOk);
// setup async container
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setQueueNames("testQueue");
container.setConcurrentConsumers(NUM_CONSUMERS);
// container.setChannelTransacted(true);
MessageListenerAdapter adapter = new MessageListenerAdapter();
adapter.setDelegate(new PojoHandler());
container.setMessageListener(adapter);
container.afterPropertiesSet();
// empty out queue
while (template.receive("testQueue") != null) {
// do
}
container.start();
// template.setChannelTransacted(true);
// send all the messages
long start = new Date().getTime();