You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by cmoulliard <cm...@gmail.com> on 2010/02/18 14:34:13 UTC
Network of Broker - Can a client consume a message ?
Hi,
I try to understand how the topology of brokers works with ActiveMq and I
have the following question
When a JMS producer creates a message which is placed in a queue (of a
broker making part of a network of broker), can this message be immediately
consumed by the JMS consumer client or does it have to wait that the message
has been replicated to the other queue of the activemq broker before to
consume ?
If a client has access to two instances of ActiveMQ designed as a network of
brokers and that the message has not been replicated to the second instance.
What will happen if the client has consumed a message on the first instance
when the second instance will be restarted and messages replicated. Will the
message be consumed again by the client after replication ?
Regards,
Charles
-----
Charles Moulliard
SOA Architect
My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
--
View this message in context: http://old.nabble.com/Network-of-Broker---Can-a-client-consume-a-message---tp27637643p27637643.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Network of Broker - Can a client consume a message ?
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Charles,
if the local broker have a consumer on the queue, the message will be
dispatched to it. The message can't be both consumed locally and forwarded
to the remote broker. You can also use 'dynamicOnly' property, to instruct
the broker only to forward messages if there are active consumers on the
remote broker.
Cheers
--
Dejan Bosanac - http://twitter.com/dejanb
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Thu, Feb 18, 2010 at 2:34 PM, cmoulliard <cm...@gmail.com> wrote:
>
> Hi,
>
> I try to understand how the topology of brokers works with ActiveMq and I
> have the following question
>
> When a JMS producer creates a message which is placed in a queue (of a
> broker making part of a network of broker), can this message be immediately
> consumed by the JMS consumer client or does it have to wait that the
> message
> has been replicated to the other queue of the activemq broker before to
> consume ?
>
> If a client has access to two instances of ActiveMQ designed as a network
> of
> brokers and that the message has not been replicated to the second
> instance.
> What will happen if the client has consumed a message on the first instance
> when the second instance will be restarted and messages replicated. Will
> the
> message be consumed again by the client after replication ?
>
> Regards,
>
> Charles
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context:
> http://old.nabble.com/Network-of-Broker---Can-a-client-consume-a-message---tp27637643p27637643.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>