activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Maintenance Mode
Date Tue, 02 Oct 2012 18:26:39 GMT
Yes, if you're trying to sequentially produce to the list of destinations,
and a producer blocks because the dest it's trying to write to is full,
your whole processing will block. On the other hand, you can set options to
not block the producer and instead send an exception if the destination is
full. That way you can catch the exception for that producer, and continue
on (and possibly re-send at a later point):

See here and the "sendFailIfNoSpace" config option:

http://activemq.apache.org/producer-flow-control.html



On Tue, Oct 2, 2012 at 11:18 AM, zackhasit <zackhasit@gmail.com> wrote:

> Thanks on e last clarification, you said:
> >>Only the producers to that one destination would be blocked, not
> producers
> to all destinations. If a producer is producing to a different destination,
> it will not be blocked.
>
> I am trying to create one process that can write to multiple queues. Does
> this mean that I need to separately multi-thread each producer object in
> the
> process such that if one blocks I can still work on writing to other queues
> ?
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Maintenance-Mode-tp4657353p4657383.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message