{
registerConsumer(consumer, false);
}
catch (AMQInvalidArgumentException ise)
{
JMSException ex = new InvalidSelectorException(ise.getMessage());
ex.setLinkedException(ise);
throw ex;
}
catch (AMQInvalidRoutingKeyException e)
{
JMSException ide =
new InvalidDestinationException("Invalid routing key:" + amqd.getRoutingKey().toString());
ide.setLinkedException(e);
throw ide;
}
catch (AMQException e)
{
JMSException ex = new JMSException("Error registering consumer: " + e);
if (_logger.isDebugEnabled())
{
e.printStackTrace();
}
ex.setLinkedException(e);
throw ex;
}
synchronized (destination)
{