Hi,
I am using DMLC for receiving messages in a standalone application. how to synchronize my database transaction and JMS transaction?
Below is the context xml
Please provide sample code. It will be greatly helpful.
I am using DMLC for receiving messages in a standalone application. how to synchronize my database transaction and JMS transaction?
Below is the context xml
Code:
<bean id="msgListenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"
p:connectionFactory-ref="jmsQueueConnectionFactory"
p:destination-ref="destination"
p:messageListener-ref="messageListener"
p:concurrentConsumers="5"
p:maxConcurrentConsumers="10"
p:receiveTimeout="2000"
p:idleTaskExecutionLimit="10"
p:idleConsumerLimit="5"
p:cacheLevelName="CACHE_CONSUMER"
p:taskExecutor-ref="listnerTaskExecutor"/>