boolean isQueueBound(final AMQShortString exchangeName, final AMQShortString queueName, final AMQShortString routingKey)
throws JMSException
{
try
{
AMQMethodEvent response =
new FailoverRetrySupport<AMQMethodEvent, AMQException>(
new FailoverProtectedOperation<AMQMethodEvent, AMQException>()
{
public AMQMethodEvent execute() throws AMQException, FailoverException
{
AMQFrame boundFrame =
ExchangeBoundBody.createAMQFrame(_channelId, getProtocolMajorVersion(),
getProtocolMinorVersion(), exchangeName, // exchange
queueName, // queue
routingKey); // routingKey
return getProtocolHandler().syncWrite(boundFrame, ExchangeBoundOkBody.class);
}
}, _connection).execute();
// Extract and return the response code from the query.
ExchangeBoundOkBody responseBody = (ExchangeBoundOkBody) response.getMethod();
return (responseBody.replyCode == 0);
}
catch (AMQException e)
{