For Q add x-queue-type args
This commit is contained in:
parent
2a8b557a3f
commit
da581fad6e
|
@ -56,13 +56,9 @@ public class AMQPHelloWorldMessageApp {
|
|||
@Bean
|
||||
Queue myQueue() {
|
||||
Map<String, Object> args = new HashMap<>();
|
||||
// // set the queue with a dead letter feature
|
||||
// args.put("x-queue-type", "classic");
|
||||
args.put("x-queue-type", "classic");
|
||||
|
||||
return new Queue(MY_QUEUE_NAME, NON_DURABLE, false, false, args);
|
||||
// return new Queue(MY_QUEUE_NAME, NON_DURABLE);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue