System.err.println(url.toString());
conn = new AMQConnection(url);
AMQSession sess = (AMQSession) conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
sess.declareExchange(new AMQShortString("test.direct"),
AMQShortString.valueOf(ExchangeDefaults.DIRECT_EXCHANGE_CLASS), false);
sess.declareExchange(new AMQShortString("tmp.direct"),
AMQShortString.valueOf(ExchangeDefaults.DIRECT_EXCHANGE_CLASS), false);
sess.declareExchange(new AMQShortString("tmp.topic"),
AMQShortString.valueOf(ExchangeDefaults.TOPIC_EXCHANGE_CLASS), false);
sess.declareExchange(new AMQShortString("test.topic"),
AMQShortString.valueOf(ExchangeDefaults.TOPIC_EXCHANGE_CLASS), false);
QueueSession queueSession = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
AMQQueue queue = (AMQQueue) queueSession.createQueue("MyQueue");