public static bool IsConnectionAdvisoryTopic(ActiveMQDestination destination)
 {
     if (destination.IsComposite)
     {
         ActiveMQDestination[] compositeDestinations = destination.GetCompositeDestinations();
         for (int i = 0; i < compositeDestinations.Length; i++)
         {
             if (IsConnectionAdvisoryTopic(compositeDestinations[i]))
             {
                 return(true);
             }
         }
         return(false);
     }
     else
     {
         return(destination.Equals(CONNECTION_ADVISORY_TOPIC));
     }
 }
 public static bool IsFullAdvisoryTopic(ActiveMQDestination destination)
 {
     if (destination.IsComposite)
     {
         ActiveMQDestination[] compositeDestinations = destination.GetCompositeDestinations();
         for (int i = 0; i < compositeDestinations.Length; i++)
         {
             if (IsFullAdvisoryTopic(compositeDestinations[i]))
             {
                 return(true);
             }
         }
         return(false);
     }
     else
     {
         return(destination.IsTopic && destination.PhysicalName.StartsWith(FULL_TOPIC_PREFIX));
     }
 }
Example #3
0
 public static bool IsTempDestinationAdvisoryTopic(ActiveMQDestination destination)
 {
     if (destination.IsComposite)
     {
         ActiveMQDestination[] compositeDestinations = destination.GetCompositeDestinations();
         bool containsNonTempDests = false;
         for (int i = 0; i < compositeDestinations.Length; i++)
         {
             if (!IsTempDestinationAdvisoryTopic(compositeDestinations[i]))
             {
                 containsNonTempDests = true;
             }
         }
         return(!containsNonTempDests);
     }
     else
     {
         return(destination.Equals(TEMP_QUEUE_ADVISORY_TOPIC) ||
                destination.Equals(TEMP_TOPIC_ADVISORY_TOPIC));
     }
 }