You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by MqUser <pm...@sonic.net> on 2007/02/10 08:04:09 UTC

Are all producer message calls Asynchronous?

If one want to send a message and not move forward (be blocked) until
confirmation arrives that the call completed on the other side, can that be
done with activemq?
-- 
View this message in context: http://www.nabble.com/Are-all-producer-message-calls-Asynchronous--tf3204489s2354.html#a8898440
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Are all producer message calls Asynchronous?

Posted by James Strachan <ja...@gmail.com>.
On 2/10/07, MqUser <pm...@sonic.net> wrote:
>
> If one want to send a message and not move forward (be blocked) until
> confirmation arrives that the call completed on the other side, can that be
> done with activemq?

By default if you are sending persistent messages, the send() method
will block until your message has been persisted in the broker.

An alternative is to use a JMS transaction and the commit() call will
complete when the broker has completed the atomic operation (this
works for any number of sends & receives)
-- 

James
-------
http://radio.weblogs.com/0112098/