Is it possible to have dead letter queue for individual queues

前端 未结 1 599
再見小時候
再見小時候 2021-01-21 09:10

I currently have a Queue in my ActiveMQ server called hello.world. Whenever a message fails to be processed, ActiveMQ creates a default directory called Activ

1条回答
  •  日久生厌
    2021-01-21 09:41

    The thing you are looking for is called Individual Dead letter Queue strategy, in this process ActiveMQ creates specific DLQ for each queue/topic,

    you can implement it as follows, by tweaking your activemq.xml a bit

     
        
          
             
            
              
                
              
            
          
        
      
    

    this configuration will create DLQ with names like DLQ. , if you do not want the prefix , you can remove queuePrefix attribute.

    hope this helps!

    Good luck!

    0 讨论(0)
提交回复
热议问题