public abstract class JmsUtils
extends java.lang.Object
Constructor and Description |
---|
JmsUtils() |
Modifier and Type | Method and 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. |
static void |
deleteTemporaryDestination(javax.jms.Destination d)
Delete a temporary destnation without logging any errors.
|
static void |
rethrowJMSException(java.lang.String msg,
java.lang.Throwable e) |
static void |
rethrowJMSException(java.lang.Throwable e) |
static void |
stopQuietly(javax.jms.Connection con) |
static javax.jms.JMSException |
wrapJMSException(java.lang.String msg,
java.lang.Throwable e) |
static javax.jms.JMSException |
wrapJMSException(java.lang.Throwable e) |
public static javax.jms.JMSException wrapJMSException(java.lang.Throwable e)
public static javax.jms.JMSException wrapJMSException(java.lang.String msg, java.lang.Throwable e)
public static void rethrowJMSException(java.lang.Throwable e) throws javax.jms.JMSException
javax.jms.JMSException
public static void rethrowJMSException(java.lang.String msg, java.lang.Throwable e) throws javax.jms.JMSException
javax.jms.JMSException
public static void deleteQuietly(javax.jms.TemporaryQueue q)
TemporaryQueue
without logging any errors.q
- the queue.public static void deleteQuietly(javax.jms.TemporaryTopic t)
TemporaryTopic
without logging any errors.t
- the topicpublic static void deleteTemporaryDestination(javax.jms.Destination d)
d
- the topicpublic static void closeQuietly(javax.jms.Connection con)
Connection
without logging any errors or stopping the connection first.con
- the queue.closeQuietly(Connection, boolean)
public static void closeQuietly(javax.jms.Connection con, boolean stopFirst)
Connection
without logging any errors.con
- the queue.stopFirst
- whether or not to stop the connection first.public static void stopQuietly(javax.jms.Connection con)
public static void closeQuietly(javax.jms.Session session)
Session
without logging any errors.session
- the session.public static void closeQuietly(javax.jms.MessageProducer producer)
MessageProducer
without logging any errors.producer
- the producer.public static void closeQuietly(javax.jms.MessageConsumer consumer)
MessageConsumer
without logging any errors.consumer
- the consumer.