JMS listener
Receives JMS messages from a specific JMS destination and processes them.
JMS message listeners are responsible for receiving JMS messages from a specific JMS destination and then processing them.
If you want to receive JMS messages and process them using a normal message flow, use a JMS inbound channel adapter or JMS inbound gateway instead (both are specialized implementations of JMS listener container that are optimized for this specific case).
Destination
The destination name for this listener (a JMS queue, topic or durable topic).
Required
Message listener
The JMS message listener implementation that will handle incoming JMS messages.
Required
Selector
A JMS message selector boolean expression that evaluates the headers of the messages. Only the messages where this expression evaluates to true
are received.
See the java JMS specification for message selector syntax: http://download.oracle.com/javaee/1.4/api/javax/jms/Message.html
Response destination
The name of the default response destination to send response messages to. This will be applied in case of a request message that does not carry a JMSReplyTo
field. The type of this destination will be determined by the listener container's response destination type setting.
Note: this only applies to a listener method with a return value, for which each result object will be converted into a response message.
Subscription
The name for the durable subscription, if any.
Concurrency
The number of concurrent sessions/consumers to start for this listener. Can either be a simple number indicating the maximum number (e.g. 5
) or a range indicating the lower as well as the upper limit (e.g. 3-5
). Note that a specified minimum is just a hint and might be ignored at runtime.
Default is the value provided by the container.