java.lang.Object | |
↳ | org.springframework.jms.listener.endpoint.StandardJmsActivationSpecFactory |
Known Direct Subclasses |
Standard implementation of the JmsActivationSpecFactory
interface.
Supports the standard JMS properties as defined by the JMS 1.5 specification
(Appendix B); ignores Spring's "maxConcurrency" and "prefetchSize" settings.
The 'activationSpecClass' property is required, explicitly defining the fully-qualified class name of the provider's ActivationSpec class (e.g. "org.apache.activemq.ra.ActiveMQActivationSpec").
Check out DefaultJmsActivationSpecFactory
for an extended variant
of this class, supporting some further default conventions beyond the plain
JMS 1.5 specification.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a JCA 1.5 ActivationSpec object based on the given
JmsActivationSpecConfig object. | |||||||||||
Specify the fully-qualified ActivationSpec class name for the target
provider (e.g.
| |||||||||||
Specify custom default properties, with String keys and String values.
| |||||||||||
Set the DestinationResolver to use for resolving destination names
into the JCA 1.5 ActivationSpec "destination" property.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Apply the specified acknowledge mode to the ActivationSpec object.
| |||||||||||
Determine the ActivationSpec class for the given ResourceAdapter,
if possible.
| |||||||||||
Populate the given ApplicationSpec object with the settings
defined in the given configuration object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.jms.listener.endpoint.JmsActivationSpecFactory
|
Create a JCA 1.5 ActivationSpec object based on the given
JmsActivationSpecConfig
object.
adapter | the ResourceAdapter to create an ActivationSpec object for |
---|---|
config | the configured object holding common JMS settings |
Specify the fully-qualified ActivationSpec class name for the target provider (e.g. "org.apache.activemq.ra.ActiveMQActivationSpec").
Specify custom default properties, with String keys and String values.
Applied to each ActivationSpec object before it gets populated with
listener-specific settings. Allows for configuring vendor-specific properties
beyond the Spring-defined settings in JmsActivationSpecConfig
.
Set the DestinationResolver to use for resolving destination names into the JCA 1.5 ActivationSpec "destination" property.
If not specified, destination names will simply be passed in as Strings. If specified, destination names will be resolved into Destination objects first.
Note that a DestinationResolver for use with this factory must be
able to work without an active JMS Session: e.g.
JndiDestinationResolver
or BeanFactoryDestinationResolver
but not DynamicDestinationResolver
.
Apply the specified acknowledge mode to the ActivationSpec object.
This implementation applies the standard JCA 1.5 acknowledge modes
"Auto-acknowledge" and "Dups-ok-acknowledge". It throws an exception in
case of CLIENT_ACKNOWLEDGE
or SESSION_TRANSACTED
having been requested.
bw | the BeanWrapper wrapping the ActivationSpec object |
---|---|
ackMode | the configured acknowledge mode (according to the constants in javax.jms.Session |
Determine the ActivationSpec class for the given ResourceAdapter, if possible. Called if no 'activationSpecClass' has been set explicitly
adapter | the ResourceAdapter to check |
---|
null
if not determinablePopulate the given ApplicationSpec object with the settings defined in the given configuration object.
This implementation applies all standard JMS settings, but ignores "maxConcurrency" and "prefetchSize" - not supported in standard JCA 1.5.
bw | the BeanWrapper wrapping the ActivationSpec object |
---|---|
config | the configured object holding common JMS settings |