abstract class JmsUtils
Generic utility methods for working with JMS. Mainly for internal use within the framework, but also useful for custom JMS access code.
Author
Juergen Hoeller
Since
1.1
JmsUtils()
Generic utility methods for working with JMS. Mainly for internal use within the framework, but also useful for custom JMS access code. |
open static fun buildExceptionMessage(ex: JMSException): String
Build a descriptive exception message for the given JMSException, incorporating a linked exception's message if appropriate. |
|
open static fun closeConnection(con: Connection): Unitopen static fun closeConnection(con: Connection, stop: Boolean): Unit
Close the given JMS Connection and ignore any thrown exception. This is useful for typical |
|
open static fun closeMessageConsumer(consumer: MessageConsumer): Unit
Close the given JMS MessageConsumer and ignore any thrown exception. This is useful for typical |
|
open static fun closeMessageProducer(producer: MessageProducer): Unit
Close the given JMS MessageProducer and ignore any thrown exception. This is useful for typical |
|
open static fun closeQueueBrowser(browser: QueueBrowser): Unit
Close the given JMS QueueBrowser and ignore any thrown exception. This is useful for typical |
|
open static fun closeQueueRequestor(requestor: QueueRequestor): Unit
Close the given JMS QueueRequestor and ignore any thrown exception. This is useful for typical |
|
open static fun closeSession(session: Session): Unit
Close the given JMS Session and ignore any thrown exception. This is useful for typical |
|
open static fun commitIfNecessary(session: Session): Unit
Commit the Session if not within a JTA transaction. |
|
open static fun convertJmsAccessException(ex: JMSException): JmsException
Convert the specified checked javax.jms.JMSException to a Spring runtime org.springframework.jms.JmsException equivalent. |
|
open static fun rollbackIfNecessary(session: Session): Unit
Rollback the Session if not within a JTA transaction. |