activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject How to stop retry continously
Date Sun, 20 Aug 2017 03:14:41 GMT
I have develop small activemq message application using ProducerTemplate .
Its working fine.But when the ActiveMQ server is not available it keep
trying to send message to queue . So i need to find a way to stop keep
trying this.I try to add timeout in connection factory as below. but still
not working

<bean primary="true" id="jmsConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory" >
        <property name="brokerURL"
        <property name="useAsyncSend" value="true"/>
        <property name="Topic" value="false"/>
        *<property name="closeTimeout" value="5000"/>*

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message