}
}
private void createSubscriptionQueue(AMQDestination dest) throws AMQException
{
QueueNode node = (QueueNode)dest.getSourceNode(); // source node is never null
if (dest.getQueueName() == null)
{
if (dest.getLink() != null && dest.getLink().getName() != null)
{
dest.setQueueName(new AMQShortString(dest.getLink().getName()));
}
}
node.setExclusive(true);
node.setAutoDelete(!node.isDurable());
send0_10QueueDeclare(dest,null,false,true);
node.addBinding(new Binding(dest.getAddressName(),
dest.getQueueName(),// should have one by now
dest.getSubject(),
Collections.<String,Object>emptyMap()));
sendQueueBind(dest.getAMQQueueName(), dest.getRoutingKey(),
null,dest.getExchangeName(),dest, false);