Non-persistent messages are, by default, sent asynchronously (a.k.a., fire and forget).
Yes, if you send persistent messages with asyncSend, you will realize a nice boost in throughput. Joe http://www.ttmsolutions.com jongraf wrote: > > Two questions: > 1) Is asyncSend set to true by default if I am using non-persistent > messaging? The line of code where this is determined is ActiveMQSession > line 1670, 1680: > <p> > <code> > if (sendTimeout <= 0 && !msg.isResponseRequired() && > !connection.isAlwaysSyncSend() && (!msg.isPersistent() || > connection.isUseAsyncSend() || txid != null)) { > this.connection.asyncSendPacket(msg); > </code> > <p> > It looks like I need to set the sendTimeout to less than zero or make sure > that a response is not required on the message to guarantee that asyncSend > is being used. Any recommendations? > <p> > 2) Would I experience faster throughput if I used persistent messaging > with asyncSend instead? > -- View this message in context: http://old.nabble.com/Non-persistent-queue%2C-asyncSend-tp27179026p27182814.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.