On Tue, Oct 13, 2009 at 12:56 PM, linuca <lin...@mailinator.com> wrote:
>
> Hi Everybody!
>
> I need to use persistent and non-persistent delivery mode. I read in the
> documentation that "The delivery mode is set on the producer and is applied
> to all messages sent from that producer. But the delivery mode can be
> overridden for individual
> messages."
>
> The persistent messages will be one large delivery (2 mb) every 15 min and
> the non-persistent messages will be frequent small deliveries.
>
> So, what is the best option? To use one broker with persistent delivery mode
> and override this behaviour for non-persistent messages (or viceversa) or to
> use two brokers, one for each delivery mode? How does this affect the
> performance or the complexity of the development?

You don't need to use two separate ActiveMQ brokers for this purpose.
A single broker works just fine for handling both types of messages.
Just use the MessageProducer.setDeliverMode() method right before
sending a message.

Bruce
-- 
perl -e 'print 
unpack("u30","D0G)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Reply via email to