code: public static void checkQueueName( String queueName ) throws JMSException
      {
          if (queueName == null)
              throw new FFMQException("Queue name is not set","INVALID_DESTINATION_NAME");            
          if (queueName.length() > FFMQConstants.MAX_QUEUE_NAME_SIZE)
              throw new FFMQException("Queue name '"+queueName+"' is too long ("+queueName.length()+" > "+FFMQConstants.MAX_QUEUE_NAME_SIZE+")","INVALID_DESTINATION_NAME");
          checkDestinationName(queueName);
      }
docs: Check the validity of a queue name