Quantcast
Viewing all articles
Browse latest Browse all 51

Standalone java transaction management

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
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"/>

Please provide sample code. It will be greatly helpful.

Viewing all articles
Browse latest Browse all 51

Trending Articles