code: public boolean queueExists(String queueName) throws JMSException {
          try {
              amazonSQSClient.getQueueUrl(prepareRequest(new GetQueueUrlRequest(queueName)));
              return true;
          } catch (QueueDoesNotExistException e) {
              return false;
          } catch (AmazonClientException e) {
              throw handleException(e, "getQueueUrl");  
          } 
      }
docs: Check if the requested queue exists. This function calls
  <code>GetQueueUrl</code> for the given queue name, returning true on
  success, false if it gets <code>QueueDoesNotExistException</code>.
  
  @param queueName
  the queue to check
  @return true if the queue exists, false if it doesn't.
  @throws JMSException