-
1. Re: Non Persistent Message Not Delivered to Broker
garytully Jun 29, 2011 10:10 AM (in response to uname1234)There should be no message loss in what you describe.
to try with synchronous sending use the following url parameter on the client broker url:
jms.alwaysSyncSend=true
-
2. Re: Non Persistent Message Not Delivered to Broker
uname1234 Aug 26, 2011 5:27 PM (in response to garytully)Okay, I have tested using jms.alwaysSyncSend=true in the connection URL in production environments for several clients and for several months and this small tweak has seemed to fixed the lost message problem.
Since setting this flag is not as efficient, I am trying to determine if this is a potential bug with ActiveMQ, or in our code, e.g. Sharing a MessgeProducer with multi-threads, etc.
Any thoughts as to why setting jms.alwaysSyncSend=true fixed the issue?
Thanks,
Rob A.
-
3. Re: Non Persistent Message Not Delivered to Broker
garytully Sep 1, 2011 9:37 AM (in response to uname1234)Hmm, with multiple threads using a producer (which is not typical) there is the possibility of a message with a higher sequence id being processed first by the broker.
With alwaysSyncSend, there will be serialized sending so there is no possibility of overlap of producer sequence ids.
I know both KahaDB and JDBC had message order issues with overlapping transactions that have been resolve in the past few months. Multiple threads sharing a producer may be able to reproduce a similar scenario from the store perspective.
I would be good to see if you can reproduce with a current 5.6-SNAPSHOT or the most recent 5.5.0-fuse-00-53
-
4. Re: Non Persistent Message Not Delivered to Broker
tp20165 Mar 2, 2012 11:46 AM (in response to garytully)I am facing the same issue. I tried :
The message is lost after 6 attempts. It does not go to DLQ. DLQ is not even created.
-
5. Re: Non Persistent Message Not Delivered to Broker
shenzy_shency.revindran Mar 23, 2013 11:39 AM (in response to uname1234)Hi I am facing similar issue with Fuse ESB 1.7.0 (activemq 5.7.0)
See the details here
http://fusesource.com/forums/thread.jspa?messageID=17232䍐
Did you get any further with your analysis?
Why is alwaysSyncSend flag considered as inefficient?
Thanks much