java.lang.Object | |
↳ | org.springframework.jms.listener.endpoint.JmsActivationSpecConfig |
Common configuration object for activating a JMS message endpoint. Gets converted into a provider-specific JCA 1.5 ActivationSpec object for activating the endpoint.
Typically used in combination with JmsMessageEndpointManager
,
but not tied to it.
JmsActivationSpecFactory
setActivationSpecConfig(JmsActivationSpecConfig)
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the JMS acknowledgement mode to use.
| |||||||||||
Return the maximum number of consumers/sessions to use.
| |||||||||||
Return the maximum number of messages to load into a session.
| |||||||||||
Set the JMS acknowledgement mode to use.
| |||||||||||
Set the JMS acknowledgement mode by the name of the corresponding constant
in the JMS Session interface, e.g.
| |||||||||||
Specify concurrency limits via a "lower-upper" String, e.g.
| |||||||||||
Specify the maximum number of consumers/sessions to use, effectively
controlling the number of concurrent invocations on the target listener.
| |||||||||||
Specify the maximum number of messages to load into a session
(a kind of batch size).
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Return the JMS acknowledgement mode to use.
Return the maximum number of consumers/sessions to use.
Return the maximum number of messages to load into a session.
Set the JMS acknowledgement mode to use.
Set the JMS acknowledgement mode by the name of the corresponding constant in the JMS Session interface, e.g. "CLIENT_ACKNOWLEDGE".
Note that JCA resource adapters generally only support auto and dups-ok
(see Spring's StandardJmsActivationSpecFactory
). ActiveMQ also
supports "SESSION_TRANSACTED" in the form of RA-managed transactions
(automatically translated by Spring's DefaultJmsActivationSpecFactory
.
constantName | the name of the Session acknowledge mode constant |
---|
StandardJmsActivationSpecFactory
DefaultJmsActivationSpecFactory
Specify concurrency limits via a "lower-upper" String, e.g. "5-10", or a simple upper limit String, e.g. "10".
JCA listener containers will always scale from zero to the given upper limit. A specified lower limit will effectively be ignored.
This property is primarily supported for configuration compatibility with
DefaultMessageListenerContainer
.
For this activation config, generally use setMaxConcurrency(int)
instead.
Specify the maximum number of consumers/sessions to use, effectively controlling the number of concurrent invocations on the target listener.
Specify the maximum number of messages to load into a session (a kind of batch size).