INT-2421 Support 'container-class' on JMS MDCA
Convenience for configuring a custom listener container - avoids having to transfer many attributes from the adapter to the bean when switching to a custom implementation. JIRA: https://jira.springsource.org/browse/INT-2421 INT-2421 Polishing - PR Comments Also auto-create adapter channel if necessary.
This commit is contained in:
committed by
Artem Bilan
parent
f11f00b5ab
commit
e128c80c19
@@ -87,12 +87,21 @@
|
||||
message-driven Channel Adapter with a <classname>Destination</classname> reference.
|
||||
<programlisting language="xml"><![CDATA[<int-jms:message-driven-channel-adapter id="jmsIn" destination="inQueue" channel="exampleChannel"/>]]></programlisting>
|
||||
<note>
|
||||
<para>
|
||||
The Message-Driven adapter also accepts several properties that pertain to the MessageListener container.
|
||||
These values are only considered if you do not provide an actual 'container' reference. In that case,
|
||||
These values are only considered if you do not provide a <code>container</code> reference. In that case,
|
||||
an instance of DefaultMessageListenerContainer will be created and configured based on these properties.
|
||||
For example, you can specify the "transaction-manager" reference, the "concurrent-consumers" value, and
|
||||
several other property references and values. Refer to the JavaDoc and Spring Integration's JMS Schema
|
||||
(spring-integration-jms.xsd) for more detail.
|
||||
(spring-integration-jms.xsd) for more details.
|
||||
</para>
|
||||
<para>
|
||||
If you have a custom listener container implementation (usually a subclass of
|
||||
<classname>DefaultMessageListenerContainer</classname>), you can either provide a reference to an instance
|
||||
of it using the <code>container</code> attribute, or simply provide its fully qualified class name using
|
||||
the <code>container-class</code> attribute. In that case, the attributes on the adapter
|
||||
are transferred to an instance of your custom container.
|
||||
</para>
|
||||
</note>
|
||||
</para>
|
||||
<para>
|
||||
|
||||
Reference in New Issue
Block a user