| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the descriptive message Stringthe JMSException to build a message for ex)Build a descriptive exception message for the given JMSException, incorporating a linked exception's message if appropriate. |
| public static void | closeConnection(Connection
the JMS Connection to close (may be con)null)Close the given JMS Connection and ignore any thrown exception. |
| public static void | closeConnection(Connection
the JMS Connection to close (may be con, boolean null)whether to call stop)stop() before closingClose the given JMS Connection and ignore any thrown exception. |
| public static void | closeMessageConsumer(MessageConsumer
the JMS MessageConsumer to close (may be consumer)null)Close the given JMS MessageConsumer and ignore any thrown exception. |
| public static void | closeMessageProducer(MessageProducer
the JMS MessageProducer to close (may be producer)null)Close the given JMS MessageProducer and ignore any thrown exception. |
| public static void | closeQueueBrowser(QueueBrowser
the JMS QueueBrowser to close (may be browser)null)Close the given JMS QueueBrowser and ignore any thrown exception. |
| public static void | closeQueueRequestor(QueueRequestor
the JMS QueueRequestor to close (may be requestor)null)Close the given JMS QueueRequestor and ignore any thrown exception. |
| public static void | closeSession(Session
the JMS Session to close (may be session)null)Close the given JMS Session and ignore any thrown exception. |
| public static void | commitIfNecessary(Session
the JMS Session to commit session)Commit the Session if not within a JTA transaction. |
| public static JmsException | Returns: the Spring runtime JmsException wrapping the given exceptionthe original checked JMSException to convert ex)Convert the specified checked |
| public static void | rollbackIfNecessary(Session
the JMS Session to rollback session)Roll back the Session if not within a JTA transaction. |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| JmsUtils | back to summary |
|---|---|
| public JmsUtils() | |
| buildExceptionMessage | back to summary |
|---|---|
| public static String buildExceptionMessage(JMSException ex) Build a descriptive exception message for the given JMSException, incorporating a linked exception's message if appropriate.
| |
| closeConnection | back to summary |
|---|---|
| public static void closeConnection(Connection con) Close the given JMS Connection and ignore any thrown exception. This is useful for typical
| |
| closeConnection | back to summary |
|---|---|
| public static void closeConnection(Connection con, boolean stop) Close the given JMS Connection and ignore any thrown exception. This is useful for typical
| |
| closeMessageConsumer | back to summary |
|---|---|
| public static void closeMessageConsumer(MessageConsumer consumer) Close the given JMS MessageConsumer and ignore any thrown exception. This is useful for typical
| |
| closeMessageProducer | back to summary |
|---|---|
| public static void closeMessageProducer(MessageProducer producer) Close the given JMS MessageProducer and ignore any thrown exception. This is useful for typical
| |
| closeQueueBrowser | back to summary |
|---|---|
| public static void closeQueueBrowser(QueueBrowser browser) Close the given JMS QueueBrowser and ignore any thrown exception. This is useful for typical
| |
| closeQueueRequestor | back to summary |
|---|---|
| public static void closeQueueRequestor(QueueRequestor requestor) Close the given JMS QueueRequestor and ignore any thrown exception. This is useful for typical
| |
| closeSession | back to summary |
|---|---|
| public static void closeSession(Session session) Close the given JMS Session and ignore any thrown exception. This is useful for typical
| |
| commitIfNecessary | back to summary |
|---|---|
| public static void commitIfNecessary(Session session) throws JMSException Commit the Session if not within a JTA transaction.
| |
| convertJmsAccessException | back to summary |
|---|---|
| public static JmsException convertJmsAccessException(JMSException ex) Convert the specified checked
| |
| rollbackIfNecessary | back to summary |
|---|---|
| public static void rollbackIfNecessary(Session session) throws JMSException Roll back the Session if not within a JTA transaction.
| |