2017-06-07 16 views
-1

再配信 Qの後ろにメッセージを送信するにはどうすればよいですか? 現在、メッセージはQの前面に送信されますので、他のメッセージは表示されません。ActiveMQ再配信 - 無効なメッセージをQの背面に送信

+0

あなたの質問には、あなたが何をしているのか、それがどうやって間違っているのかを正確に知るために必要な多くの文脈がありません。詳細やコードスニペットを追加する –

答えて

2

再配信が枯渇した場合は、メッセージを元のキューに戻さずにDLQデッドレターキュー)メカニズム。

例ブローカーの設定:詳細について

<destinationPolicy> 
    <policyMap> 
    <policyEntries> 
     <!-- Set the following policy on all queues using the '>' wildcard --> 
     <policyEntry queue=">"> 
     <deadLetterStrategy> 
      <!-- 
       Use the prefix 'DLQ.' for the destination name, and make 
       the DLQ a queue rather than a topic 
      --> 
      <individualDeadLetterStrategy queuePrefix="DLQ." useQueueForQueueMessages="true"/> 
     </deadLetterStrategy> 
     </policyEntry> 
    </policyEntries> 
    </policyMap> 
</destinationPolicy> 

ActiveMQ documentationを参照してください。

関連する問題