I am using active MQ with spring.

I am using JMS Template to send the messages. 

My application logic is the following activies in sequence
1> Do some set of online activities
2> Submit some things for offline activity using JMS template and active MQ
3> Sent response for online activities

My use case is I down want the offline activity to impact my online flow.

I tried setting different timeout settings for 

org.apache.activemq.ActiveMQConnectionFactory 

brokerURL=failover:(tcp://server1:61616,tcp://server2:61616)?jms.redeliveryPolicy.maximumRedeliveries=1&timeout=3000

and 

sendTimeout=3000


both work and timeout in approximately 3  to 5 secs if the service is down. 



But if i simulate a network packet loss it takes over 50 secs to respond.
The way I simulate packetloss is i use 
iptables -A OUTPUT -p tcp --dport 61616 -j DROP

Is there any alternate timeout i can set for this kind of scenerio










--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-Send-Timeout-does-not-work-while-simulating-packetloss-tp4660111.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to