Package | Description |
---|---|
org.springframework.jms |
This package contains integration classes for JMS,
allowing for Spring-style JMS access.
|
org.springframework.jms.connection |
Provides a PlatformTransactionManager implementation for a single
JMS ConnectionFactory, and a SingleConnectionFactory adapter.
|
org.springframework.jms.core |
Core package of the JMS support.
|
org.springframework.jms.listener |
This package contains the base message listener container facility.
|
org.springframework.jms.listener.adapter |
Message listener adapter mechanism that delegates to target listener
methods, converting messages to appropriate message content types
(such as String or byte array) that get passed into listener methods.
|
org.springframework.jms.support |
This package provides generic JMS support classes,
to be used by higher-level classes like JmsTemplate.
|
org.springframework.jms.support.converter |
Provides a MessageConverter abstraction to convert
between Java objects and JMS messages.
|
org.springframework.jms.support.destination |
Support classes for Spring's JMS framework.
|
Modifier and Type | Class and Description |
---|---|
class |
IllegalStateException
Runtime exception mirroring the JMS IllegalStateException.
|
class |
InvalidClientIDException
Runtime exception mirroring the JMS InvalidClientIDException.
|
class |
InvalidDestinationException
Runtime exception mirroring the JMS InvalidDestinationException.
|
class |
InvalidSelectorException
Runtime exception mirroring the JMS InvalidSelectorException.
|
class |
JmsSecurityException
Runtime exception mirroring the JMS JMSSecurityException.
|
class |
MessageEOFException
Runtime exception mirroring the JMS MessageEOFException.
|
class |
MessageFormatException
Runtime exception mirroring the JMS MessageFormatException.
|
class |
MessageNotReadableException
Runtime exception mirroring the JMS MessageNotReadableException.
|
class |
MessageNotWriteableException
Runtime exception mirroring the JMS MessageNotWriteableException.
|
class |
ResourceAllocationException
Runtime exception mirroring the JMS ResourceAllocationException.
|
class |
TransactionInProgressException
Runtime exception mirroring the JMS TransactionInProgressException.
|
class |
TransactionRolledBackException
Runtime exception mirroring the JMS TransactionRolledBackException.
|
class |
UncategorizedJmsException
JmsException to be thrown when no other matching subclass found.
|
Modifier and Type | Class and Description |
---|---|
class |
SynchedLocalTransactionFailedException
Exception thrown when a synchronized local transaction failed to complete
(after the main transaction has already completed).
|
Modifier and Type | Method and Description |
---|---|
protected MessagingException |
JmsMessagingTemplate.convertJmsException(JmsException ex) |
Modifier and Type | Method and Description |
---|---|
<T> T |
JmsOperations.browse(BrowserCallback<T> action)
Browse messages in the default JMS queue.
|
<T> T |
JmsTemplate.browse(BrowserCallback<T> action) |
<T> T |
JmsOperations.browse(Queue queue,
BrowserCallback<T> action)
Browse messages in a JMS queue.
|
<T> T |
JmsTemplate.browse(Queue queue,
BrowserCallback<T> action) |
<T> T |
JmsOperations.browse(java.lang.String queueName,
BrowserCallback<T> action)
Browse messages in a JMS queue.
|
<T> T |
JmsTemplate.browse(java.lang.String queueName,
BrowserCallback<T> action) |
<T> T |
JmsOperations.browseSelected(Queue queue,
java.lang.String messageSelector,
BrowserCallback<T> action)
Browse selected messages in a JMS queue.
|
<T> T |
JmsTemplate.browseSelected(Queue queue,
java.lang.String messageSelector,
BrowserCallback<T> action) |
<T> T |
JmsOperations.browseSelected(java.lang.String messageSelector,
BrowserCallback<T> action)
Browse selected messages in a JMS queue.
|
<T> T |
JmsTemplate.browseSelected(java.lang.String messageSelector,
BrowserCallback<T> action) |
<T> T |
JmsOperations.browseSelected(java.lang.String queueName,
java.lang.String messageSelector,
BrowserCallback<T> action)
Browse selected messages in a JMS queue.
|
<T> T |
JmsTemplate.browseSelected(java.lang.String queueName,
java.lang.String messageSelector,
BrowserCallback<T> action) |
void |
JmsOperations.convertAndSend(Destination destination,
java.lang.Object message)
Send the given object to the specified destination, converting the object
to a JMS message with a configured MessageConverter.
|
void |
JmsTemplate.convertAndSend(Destination destination,
java.lang.Object message) |
void |
JmsOperations.convertAndSend(Destination destination,
java.lang.Object message,
MessagePostProcessor postProcessor)
Send the given object to the specified destination, converting the object
to a JMS message with a configured MessageConverter.
|
void |
JmsTemplate.convertAndSend(Destination destination,
java.lang.Object message,
MessagePostProcessor postProcessor) |
void |
JmsOperations.convertAndSend(java.lang.Object message)
Send the given object to the default destination, converting the object
to a JMS message with a configured MessageConverter.
|
void |
JmsTemplate.convertAndSend(java.lang.Object message) |
void |
JmsOperations.convertAndSend(java.lang.Object message,
MessagePostProcessor postProcessor)
Send the given object to the default destination, converting the object
to a JMS message with a configured MessageConverter.
|
void |
JmsTemplate.convertAndSend(java.lang.Object message,
MessagePostProcessor postProcessor) |
void |
JmsOperations.convertAndSend(java.lang.String destinationName,
java.lang.Object message)
Send the given object to the specified destination, converting the object
to a JMS message with a configured MessageConverter.
|
void |
JmsTemplate.convertAndSend(java.lang.String destinationName,
java.lang.Object message) |
void |
JmsOperations.convertAndSend(java.lang.String destinationName,
java.lang.Object message,
MessagePostProcessor postProcessor)
Send the given object to the specified destination, converting the object
to a JMS message with a configured MessageConverter.
|
void |
JmsTemplate.convertAndSend(java.lang.String destinationName,
java.lang.Object message,
MessagePostProcessor postProcessor) |
<T> T |
JmsOperations.execute(Destination destination,
ProducerCallback<T> action)
Send messages to a JMS destination.
|
<T> T |
JmsTemplate.execute(Destination destination,
ProducerCallback<T> action) |
<T> T |
JmsOperations.execute(ProducerCallback<T> action)
Send messages to the default JMS destination (or one specified
for each send operation).
|
<T> T |
JmsTemplate.execute(ProducerCallback<T> action) |
<T> T |
JmsOperations.execute(SessionCallback<T> action)
Execute the action specified by the given action object within a JMS Session.
|
<T> T |
JmsTemplate.execute(SessionCallback<T> action) |
<T> T |
JmsTemplate.execute(SessionCallback<T> action,
boolean startConnection)
Execute the action specified by the given action object within a
JMS Session.
|
<T> T |
JmsOperations.execute(java.lang.String destinationName,
ProducerCallback<T> action)
Send messages to a JMS destination.
|
<T> T |
JmsTemplate.execute(java.lang.String destinationName,
ProducerCallback<T> action) |
Message |
JmsOperations.receive()
Receive a message synchronously from the default destination, but only
wait up to a specified time for delivery.
|
Message |
JmsTemplate.receive() |
Message |
JmsOperations.receive(Destination destination)
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
|
Message |
JmsTemplate.receive(Destination destination) |
Message |
JmsOperations.receive(java.lang.String destinationName)
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
|
Message |
JmsTemplate.receive(java.lang.String destinationName) |
java.lang.Object |
JmsOperations.receiveAndConvert()
Receive a message synchronously from the default destination, but only
wait up to a specified time for delivery.
|
java.lang.Object |
JmsTemplate.receiveAndConvert() |
java.lang.Object |
JmsOperations.receiveAndConvert(Destination destination)
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
|
java.lang.Object |
JmsTemplate.receiveAndConvert(Destination destination) |
java.lang.Object |
JmsOperations.receiveAndConvert(java.lang.String destinationName)
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
|
java.lang.Object |
JmsTemplate.receiveAndConvert(java.lang.String destinationName) |
Message |
JmsOperations.receiveSelected(Destination destination,
java.lang.String messageSelector)
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
|
Message |
JmsTemplate.receiveSelected(Destination destination,
java.lang.String messageSelector) |
Message |
JmsOperations.receiveSelected(java.lang.String messageSelector)
Receive a message synchronously from the default destination, but only
wait up to a specified time for delivery.
|
Message |
JmsTemplate.receiveSelected(java.lang.String messageSelector) |
Message |
JmsOperations.receiveSelected(java.lang.String destinationName,
java.lang.String messageSelector)
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
|
Message |
JmsTemplate.receiveSelected(java.lang.String destinationName,
java.lang.String messageSelector) |
java.lang.Object |
JmsOperations.receiveSelectedAndConvert(Destination destination,
java.lang.String messageSelector)
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
|
java.lang.Object |
JmsTemplate.receiveSelectedAndConvert(Destination destination,
java.lang.String messageSelector) |
java.lang.Object |
JmsOperations.receiveSelectedAndConvert(java.lang.String messageSelector)
Receive a message synchronously from the default destination, but only
wait up to a specified time for delivery.
|
java.lang.Object |
JmsTemplate.receiveSelectedAndConvert(java.lang.String messageSelector) |
java.lang.Object |
JmsOperations.receiveSelectedAndConvert(java.lang.String destinationName,
java.lang.String messageSelector)
Receive a message synchronously from the specified destination, but only
wait up to a specified time for delivery.
|
java.lang.Object |
JmsTemplate.receiveSelectedAndConvert(java.lang.String destinationName,
java.lang.String messageSelector) |
void |
JmsOperations.send(Destination destination,
MessageCreator messageCreator)
Send a message to the specified destination.
|
void |
JmsTemplate.send(Destination destination,
MessageCreator messageCreator) |
void |
JmsOperations.send(MessageCreator messageCreator)
Send a message to the default destination.
|
void |
JmsTemplate.send(MessageCreator messageCreator) |
void |
JmsOperations.send(java.lang.String destinationName,
MessageCreator messageCreator)
Send a message to the specified destination.
|
void |
JmsTemplate.send(java.lang.String destinationName,
MessageCreator messageCreator) |
Message |
JmsOperations.sendAndReceive(Destination destination,
MessageCreator messageCreator)
Send a message and receive the reply from the specified destination.
|
Message |
JmsTemplate.sendAndReceive(Destination destination,
MessageCreator messageCreator) |
Message |
JmsOperations.sendAndReceive(MessageCreator messageCreator)
Send a request message and receive the reply from a default destination.
|
Message |
JmsTemplate.sendAndReceive(MessageCreator messageCreator) |
Message |
JmsOperations.sendAndReceive(java.lang.String destinationName,
MessageCreator messageCreator)
Send a message and receive the reply from the specified destination.
|
Message |
JmsTemplate.sendAndReceive(java.lang.String destinationName,
MessageCreator messageCreator) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractJmsListeningContainer.initialize()
Initialize this container.
|
void |
AbstractJmsListeningContainer.shutdown()
Stop the shared Connection, call
AbstractJmsListeningContainer.doShutdown() ,
and close this container. |
void |
AbstractJmsListeningContainer.start()
Start this container.
|
void |
DefaultMessageListenerContainer.start()
Overridden to reset the stop callback, if any.
|
void |
AbstractJmsListeningContainer.stop()
Stop this container.
|
void |
DefaultMessageListenerContainer.stop(java.lang.Runnable callback)
Stop this listener container, invoking the specific callback
once all listener processing has actually stopped.
|
Modifier and Type | Class and Description |
---|---|
class |
ListenerExecutionFailedException
Exception to be thrown when the execution of a listener method failed.
|
class |
ReplyFailureException
Exception to be thrown when the reply of a message failed to be sent.
|
Modifier and Type | Method and Description |
---|---|
static JmsException |
JmsUtils.convertJmsAccessException(JMSException ex)
Convert the specified checked
JMSException to a
Spring runtime JmsException equivalent. |
protected JmsException |
JmsAccessor.convertJmsAccessException(JMSException ex)
Convert the specified checked
JMSException to
a Spring runtime JmsException
equivalent. |
Modifier and Type | Class and Description |
---|---|
class |
MessageConversionException
Thrown by
MessageConverter implementations when the conversion
of an object to/from a Message fails. |
Modifier and Type | Class and Description |
---|---|
class |
DestinationResolutionException
Thrown by a DestinationResolver when it cannot resolve a destination name.
|