-
Oct 30th, 2008, 07:05 PM
#1
DefaultMessageListenerContainer and HibernateTransactionManager
Is it ok to use a HibernateTransactionManager within a DMLC on Webshpere 6.0.2.12
Things work fine in my development setup but when deployed on unix boxes things work for a while and then the whole app hangs, requiring a reboot. If I take out the 'transactionManager' and 'sessionTransacted' property out of the equation the listener works just fine. I have some data to persist in the database (My app uses hibernate 3.0)
here is my config,
<bean id="transactionManager" class="org.springframework.orm.hibernate3.Hibernat eTransactionManager">
<property name="sessionFactory"><ref bean="sessionFactory"/></property>
</bean>
<bean id="mxContractStatusListener" class="com.dcs.mcass.mq.listener.MXContractStatusL istener" />
<bean id="jmsContainer" class="org.springframework.jms.listener.DefaultMes sageListenerContainer102">
<property name="connectionFactory" ref="jmsConnectionFactory"/>
<property name="destinationName" value="jms/efpMxContractStatusReq" />
<property name="destinationResolver" ref="jmsDestinationResolver"/>
<property name="concurrentConsumers" value="1"/>
<property name="maxConcurrentConsumers" value="1"/>
<property name="cacheLevel" value="0"/>
<property name="taskExecutor" ref="listenerTaskExecutor" />
<property name="sessionTransacted" value="true"/>
<property name="transactionManager" ref="transactionManager" />
<property name="messageListener" ref="mxContractStatusListener" />
</bean>
Last edited by prempower; Oct 31st, 2008 at 11:50 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules