return factory.createExchange("amp.direct", "direct", false, false);
}
public static SimpleAMQQueue createQueue(String queueName, VirtualHost virtualHost) throws AMQException
{
SimpleAMQQueue queue = (SimpleAMQQueue) virtualHost.createQueue(UUIDGenerator.generateRandomUUID(), queueName, false, null,
false, false, false, Collections.<String, Object>emptyMap());
return queue;
}