RabbitMQ Topology Operator Custom Delayed Message Exchange #8725
Replies: 3 comments 1 reply
-
The message suggests that the plugin was not enabled. If it was not on the code path, you'd get an exception at the time of enabling it. Although I have not tried listing a missing plugin in the enabled plugins file, I assume that should fail with an exception as well. |
Beta Was this translation helpful? Give feedback.
-
I thought so as well, so I checked the startup logs. It appears that the plugin was started:
Could it be the format of the parameter? I noticed when I created a Queue Policy that I had to remove the Here is the working Queue Policy:
And here was its equivalent Queue configuration from Java/Spring: @Bean
public Queue queueGroundData() {
Queue rtn = new Queue(QUEUE_GROUND, true);
rtn.addArgument("x-dead-letter-exchange", EXCHANGE_DLX);
return rtn;
} Here was the error from RabbitMQ when I tried making this new Exchange have the argument with the
Note: That caused the error to change from a complaint about the argument to a complaint about the type. |
Beta Was this translation helpful? Give feedback.
-
Alright, I just went back and tested the one other permutation of the parameters and it worked!
So, in the case of the Exchange, all argument names must include the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to create a delayed message exchange using the RabbitMQ Topology Operator?
I have successfully created a custom RabbitMQ Server image with the delayed message plugin installed and enabled. However, when I try to create my delay exchange, I get an error "Declare exchange error: Invalid argument, 'x-delayed-type' must be an existing exchange type".
Here is my Exchange definition:
I believe, based on how definitions and arguments work on other topology resources, that the exchange options are analogous to how I was able to create this exchange in my Java/Spring code:
Beta Was this translation helpful? Give feedback.
All reactions