java.lang.Object | |
↳ | org.springframework.jms.support.JmsUtils |
Generic utility methods for working with JMS. Mainly for internal use within the framework, but also useful for custom JMS access code.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build a descriptive exception message for the given JMSException,
incorporating a linked exception's message if appropriate.
| |||||||||||
Close the given JMS Connection and ignore any thrown exception.
| |||||||||||
Close the given JMS Connection and ignore any thrown exception.
| |||||||||||
Close the given JMS MessageConsumer and ignore any thrown exception.
| |||||||||||
Close the given JMS MessageProducer and ignore any thrown exception.
| |||||||||||
Close the given JMS QueueBrowser and ignore any thrown exception.
| |||||||||||
Close the given JMS QueueRequestor and ignore any thrown exception.
| |||||||||||
Close the given JMS Session and ignore any thrown exception.
| |||||||||||
Commit the Session if not within a JTA transaction.
| |||||||||||
Convert the specified checked javax.jms.JMSException JMSException to a
Spring runtime
JmsException equivalent. | |||||||||||
Rollback the Session if not within a JTA transaction.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Build a descriptive exception message for the given JMSException, incorporating a linked exception's message if appropriate.
ex | the JMSException to build a message for |
---|
Close the given JMS Connection and ignore any thrown exception.
This is useful for typical finally
blocks in manual JMS code.
con | the JMS Connection to close (may be null )
|
---|
Close the given JMS Connection and ignore any thrown exception.
This is useful for typical finally
blocks in manual JMS code.
con | the JMS Connection to close (may be null ) |
---|---|
stop | whether to call stop() before closing
|
Close the given JMS MessageConsumer and ignore any thrown exception.
This is useful for typical finally
blocks in manual JMS code.
consumer | the JMS MessageConsumer to close (may be null )
|
---|
Close the given JMS MessageProducer and ignore any thrown exception.
This is useful for typical finally
blocks in manual JMS code.
producer | the JMS MessageProducer to close (may be null )
|
---|
Close the given JMS QueueBrowser and ignore any thrown exception.
This is useful for typical finally
blocks in manual JMS code.
browser | the JMS QueueBrowser to close (may be null )
|
---|
Close the given JMS QueueRequestor and ignore any thrown exception.
This is useful for typical finally
blocks in manual JMS code.
requestor | the JMS QueueRequestor to close (may be null )
|
---|
Close the given JMS Session and ignore any thrown exception.
This is useful for typical finally
blocks in manual JMS code.
session | the JMS Session to close (may be null )
|
---|
Commit the Session if not within a JTA transaction.
session | the JMS Session to commit |
---|
if committing failed | |
JMSException |
Convert the specified checked javax.jms.JMSException JMSException to a
Spring runtime JmsException
equivalent.
ex | the original checked JMSException to convert |
---|
Rollback the Session if not within a JTA transaction.
session | the JMS Session to rollback |
---|
if committing failed | |
JMSException |