Show use of CachingConnectionFactory in docs for ActiveMQ integration
Show use of ConnectionUtils.GetConnectionTxPair when using 'low level' integration with Spring's declarative tx mgmt.
This commit is contained in:
@@ -875,14 +875,19 @@ namespace MyApp
|
||||
implementation, <literal>SimpleMessageListenerContainer</literal>.
|
||||
<literal>SimpleMessageListenerContainer</literal> creates a fixed number
|
||||
of JMS Sessions/MessageConsumer pairs as set by the property
|
||||
<property>ConcurrentConsumers</property>. Here is a sample
|
||||
configuration</para>
|
||||
<property>ConcurrentConsumers</property>. The default value of
|
||||
ConcurrentConsumers is one. Here is a sample configuration</para>
|
||||
|
||||
<programlisting language="myxml">
|
||||
<object id="ConnectionFactory" type="Apache.NMS.ActiveMQ.ConnectionFactory, Apache.NMS.ActiveMQ">
|
||||
<object id="ActiveMqConnectionFactory" type="Apache.NMS.ActiveMQ.ConnectionFactory, Apache.NMS.ActiveMQ">
|
||||
<constructor-arg index="0" value="tcp://localhost:61616"/>
|
||||
</object>
|
||||
|
||||
<object id="ConnectionFactory" type="Spring.Messaging.Nms.Connections.CachingConnectionFactory, Spring.Messaging.Nms">
|
||||
<constructor-arg index=0" ref="ActiveMqConnectionFactory"/>
|
||||
<property name="SessionCacheSize" value="10"/>
|
||||
</object>
|
||||
|
||||
<object id="MyMessageListener" type="MyApp.SimpleMessageListener, MyApp"/>
|
||||
|
||||
<object id="MessageListenerContainer" type="Spring.Messaging.Nms.Listener.SimpleMessageListenerContainer, Spring.Messaging.Nms">
|
||||
|
||||
Reference in New Issue
Block a user