{
Connection producerConnection = new AMQConnection(BROKER,"guest","guest","activeTTLtest","test");
AMQSession producerSession = (AMQSession) producerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = producerSession.createTemporaryQueue();
producerSession.declareAndBind((AMQDestination) queue);
MessageProducer producer = producerSession.createProducer(queue);
producer.setTimeToLive(1000L);
// send Messages
for(int i = 0; i < MSG_COUNT; i++)
{