private void declareQueue(String exch, String routkey, String qname) throws Exception
{
Connection conn = new Connection();
conn.connect("localhost", QpidBrokerTestCase.DEFAULT_PORT, "test", "guest", "guest",false);
Session sess = conn.createSession(0);
sess.exchangeDeclare(exch, "direct", null, null);
sess.queueDeclare(qname, null, null);
sess.exchangeBind(qname, exch, routkey, null);
sess.sync();
conn.close();
}