org.springframework.jms.core.JmsOperations |
Known Indirect Subclasses |
Specifies a basic set of JMS operations.
Implemented by JmsTemplate
. Not often used but a useful option
to enhance testability, as it can easily be mocked or stubbed.
Provides JmsTemplate's
send(..)
and
receive(..)
methods that mirror various JMS API methods.
See the JMS specification and javadocs for details on those methods.
JmsTemplate
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Browse messages in a JMS queue.
| |||||||||||
Browse messages in the default JMS queue.
| |||||||||||
Browse selected messages in a JMS queue.
| |||||||||||
Browse selected messages in a JMS queue.
| |||||||||||
Send the given object to the specified destination, converting the object
to a JMS message with a configured MessageConverter.
| |||||||||||
Send the given object to the default destination, converting the object
to a JMS message with a configured MessageConverter.
| |||||||||||
Send the given object to the default destination, converting the object
to a JMS message with a configured MessageConverter.
| |||||||||||
Send the given object to the specified destination, converting the object
to a JMS message with a configured MessageConverter.
| |||||||||||
Execute the action specified by the given action object within a JMS Session.
| |||||||||||
Send messages to the default JMS destination (or one specified
for each send operation).
| |||||||||||
Send messages to a JMS destination.
| |||||||||||
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the default destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the default destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the default destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the default destination, but only
wait up to a specified time for delivery.
| |||||||||||
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
| |||||||||||
Send a message to the default destination.
| |||||||||||
Send a message to the specified destination.
|
Browse messages in a JMS queue. The callback gives access to the JMS Session and QueueBrowser in order to browse the queue and react to the contents.
queue | the queue to browse |
---|---|
action | callback object that exposes the session/browser pair |
JmsException | checked JMSException converted to unchecked |
---|
Browse messages in the default JMS queue. The callback gives access to the JMS Session and QueueBrowser in order to browse the queue and react to the contents.
action | callback object that exposes the session/browser pair |
---|
JmsException | checked JMSException converted to unchecked |
---|
Browse selected messages in a JMS queue. The callback gives access to the JMS Session and QueueBrowser in order to browse the queue and react to the contents.
messageSelector | the JMS message selector expression (or null if none).
See the JMS specification for a detailed definition of selector expressions. |
---|---|
action | callback object that exposes the session/browser pair |
JmsException | checked JMSException converted to unchecked |
---|
Browse selected messages in a JMS queue. The callback gives access to the JMS Session and QueueBrowser in order to browse the queue and react to the contents.
queue | the queue to browse |
---|---|
messageSelector | the JMS message selector expression (or null if none).
See the JMS specification for a detailed definition of selector expressions. |
action | callback object that exposes the session/browser pair |
JmsException | checked JMSException converted to unchecked |
---|
Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter.
destination | the destination to send this message to |
---|---|
message | the object to convert to a message |
JmsException | converted checked JMSException to unchecked |
---|
Send the given object to the default destination, converting the object to a JMS message with a configured MessageConverter. The MessagePostProcessor callback allows for modification of the message after conversion.
This will only work with a default destination specified!
message | the object to convert to a message |
---|---|
postProcessor | the callback to modify the message |
JmsException | checked JMSException converted to unchecked |
---|
Send the given object to the default destination, converting the object to a JMS message with a configured MessageConverter.
This will only work with a default destination specified!
message | the object to convert to a message |
---|
JmsException | converted checked JMSException to unchecked |
---|
Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter. The MessagePostProcessor callback allows for modification of the message after conversion.
destination | the destination to send this message to |
---|---|
message | the object to convert to a message |
postProcessor | the callback to modify the message |
JmsException | checked JMSException converted to unchecked |
---|
Execute the action specified by the given action object within a JMS Session.
When used with a 1.0.2 provider, you may need to downcast to the appropriate domain implementation, either QueueSession or TopicSession in the action objects doInJms callback method.
action | callback object that exposes the session |
---|
JmsException | if there is any problem |
---|
Send messages to the default JMS destination (or one specified for each send operation). The callback gives access to the JMS Session and MessageProducer in order to perform complex send operations.
action | callback object that exposes the session/producer pair |
---|
JmsException | checked JMSException converted to unchecked |
---|
Send messages to a JMS destination. The callback gives access to the JMS Session and MessageProducer in order to perform complex send operations.
destination | the destination to send messages to |
---|---|
action | callback object that exposes the session/producer pair |
JmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
destinationName | the name of the destination to send this message to (to be resolved to an actual destination by a DestinationResolver) |
---|
null
if the timeout expiresJmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the default destination, but only wait up to a specified time for delivery.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null
if the timeout expiresJmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
destination | the destination to receive a message from |
---|
null
if the timeout expiresJmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the default destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
null
if the timeout expires.JmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
destination | the destination to receive a message from |
---|
null
if the timeout expires.JmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the default destination, but only wait up to a specified time for delivery.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
messageSelector | the JMS message selector expression (or null if none).
See the JMS specification for a detailed definition of selector expressions. |
---|
null
if the timeout expiresJmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
destinationName | the name of the destination to send this message to (to be resolved to an actual destination by a DestinationResolver) |
---|---|
messageSelector | the JMS message selector expression (or null if none).
See the JMS specification for a detailed definition of selector expressions. |
null
if the timeout expiresJmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
destination | the destination to receive a message from |
---|---|
messageSelector | the JMS message selector expression (or null if none).
See the JMS specification for a detailed definition of selector expressions. |
null
if the timeout expiresJmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the default destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
This will only work with a default destination specified!
messageSelector | the JMS message selector expression (or null if none).
See the JMS specification for a detailed definition of selector expressions. |
---|
null
if the timeout expires.JmsException | checked JMSException converted to unchecked |
---|
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.
This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
destination | the destination to receive a message from |
---|---|
messageSelector | the JMS message selector expression (or null if none).
See the JMS specification for a detailed definition of selector expressions. |
null
if the timeout expires.JmsException | checked JMSException converted to unchecked |
---|
Send a message to the default destination.
This will only work with a default destination specified!
messageCreator | callback to create a message |
---|
JmsException | checked JMSException converted to unchecked |
---|
Send a message to the specified destination. The MessageCreator callback creates the message given a Session.
destination | the destination to send this message to |
---|---|
messageCreator | callback to create a message |
JmsException | checked JMSException converted to unchecked |
---|