Class JmsHelper


  • public abstract class JmsHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JmsHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void closeQuietly​(javax.jms.Connection con)
      Close a Connection without logging any errors or stopping the connection first.
      static void closeQuietly​(javax.jms.Connection con, boolean stopFirst)
      Close a Connection without logging any errors.
      static void closeQuietly​(javax.jms.MessageConsumer consumer)
      Close a MessageConsumer without logging any errors.
      static void closeQuietly​(javax.jms.MessageProducer producer)
      Close a MessageProducer without logging any errors.
      static void closeQuietly​(javax.jms.Session session)
      Close a Session without logging any errors.
      static void deleteQuietly​(javax.jms.TemporaryQueue q)
      Delete a TemporaryQueue without logging any errors.
      static void deleteQuietly​(javax.jms.TemporaryTopic t)
      Delete a TemporaryTopic without logging any errors.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JmsHelper

        public JmsHelper()
    • Method Detail

      • deleteQuietly

        public static void deleteQuietly​(javax.jms.TemporaryQueue q)
        Delete a TemporaryQueue without logging any errors.
        Parameters:
        q - the queue.
      • deleteQuietly

        public static void deleteQuietly​(javax.jms.TemporaryTopic t)
        Delete a TemporaryTopic without logging any errors.
        Parameters:
        t - the topic
      • closeQuietly

        public static void closeQuietly​(javax.jms.Connection con)
        Close a Connection without logging any errors or stopping the connection first.
        Parameters:
        con - the queue.
        See Also:
        closeQuietly(Connection, boolean)
      • closeQuietly

        public static void closeQuietly​(javax.jms.Connection con,
                                        boolean stopFirst)
        Close a Connection without logging any errors.
        Parameters:
        con - the queue.
        stopFirst - whether or not to stop the connection first.
      • closeQuietly

        public static void closeQuietly​(javax.jms.Session session)
        Close a Session without logging any errors.
        Parameters:
        session - the session.
      • closeQuietly

        public static void closeQuietly​(javax.jms.MessageProducer producer)
        Close a MessageProducer without logging any errors.
        Parameters:
        producer - the producer.
      • closeQuietly

        public static void closeQuietly​(javax.jms.MessageConsumer consumer)
        Close a MessageConsumer without logging any errors.
        Parameters:
        consumer - the consumer.