}
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();
}
private Destination getDestination(String exch, String routkey, String qname)
throws Exception