activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Are all producer message calls Asynchronous?
Date Sat, 10 Feb 2007 07:16:31 GMT
On 2/10/07, MqUser <> 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)


View raw message