Java ActiveMq nonBlockingRedelivery -
i using activemq
version 5.7.x,
i having 1 activemq
queue listener listens.
queue has connectionfactory
redeliverypolicy
set 3, intialredeliverydelay
set 5000.
queue have messages , bad messages. while listening such queue, when bad messages come, tried 3 times wait time of 5000 millis, messages blocked much time span.
what want is, during wait time of 5000 millis each retry, processing of messages should go on , should not wait bad message processing.
for tried 1 attribute of connectionfactory
, i.e. nonblockingredelivery
set true.
but nonblockingredelivery
not working.
is there other way this?
you can have retransmission queue failing messages.
that is, receive messages main queue (no redelivery) , if exception, set message on redelivery queue.
let application hear on both queues , same logic both messages. should 2 message listeners invoking same method. 1 redelivery , 1 without, different error handling.
java activemq
No comments:
Post a Comment