Atomikos Forum

jms redelivery

Hello,
it seems to JMS redelivery does not work.
take https://issues.apache.org/activemq/browse/AMQ-1593 and replace working bitronix configuration with atomikos and redelivery will stop to work completely :(

    <bean id="ActiveMqFactory" class="org.apache.activemq.ActiveMQXAConnectionFactory" depends-on="broker">
        <property name="brokerURL" value="tcp://localhost:5000?jms.redeliveryPolicy.maximumRedeliveries=4&amp;jms.redeliveryPolicy.initialRedeliveryDelay=10"/>
        <property name="userName" value="admin"/>
        <property name="password" value="egate"/>
    </bean>
    
    <bean id="queueConnectionFactory" class="com.atomikos.jms.AtomikosConnectionFactoryBean"
        init-method="init" destroy-method="close" depends-on="broker">
        <property name="uniqueResourceName" value="xaActiveMqCf"/>
        <property name="minPoolSize" value="5"/>
        <property name="maxPoolSize" value="30"/>
        <property name="xaConnectionFactory" ref="ActiveMqFactory"/>
    </bean>

    <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
        <property name="transactionManager">
            <bean class="com.atomikos.icatch.jta.UserTransactionManager" init-method="init" destroy-method="close">
                <property name="transactionTimeout" value="60"/>
            </bean>
        </property>
        <property name="userTransaction">
            <bean class="com.atomikos.icatch.jta.UserTransactionImp">
                <property name="transactionTimeout" value="60"/>
            </bean>
        </property>
    </bean>
Martin Vanek Send private email
Friday, February 13, 2009
 
 
Hey,

it worked for me with following configuration, maybe that helps:

    <bean id="requestConnectionFactory" class="com.atomikos.jms.AtomikosConnectionFactoryBean" init-method="init" destroy-method="close">
        <property name="uniqueResourceName" value="QUEUE_BROKER_REQUEST" />
        <property name="xaConnectionFactory">
            <bean class="org.apache.activemq.ActiveMQXAConnectionFactory">
                <property name="brokerURL" value="tcp://localhost:11111?trace=false" />
                <property name="redeliveryPolicy">
                    <bean class="org.apache.activemq.RedeliveryPolicy">
                        <property name="maximumRedeliveries" value="50" />
                    </bean>
                </property>
            </bean>
        </property>
    </bean>
Martin Bengl Send private email
Monday, February 16, 2009
 
 
Hi Martin,
thanks, tried that too and still no redelivery. I've started bigger test of multiple JTA implementations and only bitronix is capable of successful redelivery with ActiveMQ 5.2 and OpenMQ 4.3
Martin Vanek Send private email
Monday, February 16, 2009
 
 
What release of Atomikos did you try?
Guy Pardon Send private email
Tuesday, February 17, 2009
 
 
So with some more testing, it looks like problem is on ActiveMQ side. Redelivery does NOT work in 5.2.0 version, but works in 5.3-SNAPSHOT (activemq-core-5.3-20090213.084709-90.jar)
Sorry for disturbance and thanks for great product.
Martin Vanek Send private email
Wednesday, February 18, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics