Class DestinationTools


  • public final class DestinationTools
    extends Object

    Utility functions to create or check destinations names and references

    • Constructor Detail

      • DestinationTools

        public DestinationTools()
    • Method Detail

      • asRef

        public static DestinationRef asRef​(javax.jms.Destination destination)
                                    throws javax.jms.JMSException
        Make sure the given destination is a light-weight serializable destination reference
        Throws:
        javax.jms.JMSException
      • asRef

        public static javax.jms.Queue asRef​(javax.jms.Queue queue)
                                     throws javax.jms.JMSException
        Make sure the given destination is a light-weight serializable destination reference
        Throws:
        javax.jms.JMSException
      • asRef

        public static javax.jms.Topic asRef​(javax.jms.Topic topic)
                                     throws javax.jms.JMSException
        Make sure the given destination is a light-weight serializable destination reference
        Throws:
        javax.jms.JMSException
      • getQueueNameForTopicConsumer

        public static String getQueueNameForTopicConsumer​(String topicName,
                                                          String consumerID)
        Get a queue name for a given topic consumer
      • checkQueueName

        public static void checkQueueName​(String queueName)
                                   throws javax.jms.JMSException
        Check the validity of a queue name
        Throws:
        javax.jms.JMSException
      • checkTopicName

        public static void checkTopicName​(String topicName)
                                   throws javax.jms.JMSException
        Check the validity of a topic name
        Throws:
        javax.jms.JMSException