You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by rk...@gmail.com, rk...@gmail.com on 2019/06/14 09:28:01 UTC

Want to fail produce messages with no bindings

Helo, all!

I want to configure Artemis server in such manner that it will forbid producing messages with no bindings to any address instead of droping the messages. How can i achieve this?

Now i can't be sure the message will be stored on server, because the message will be dropped by server if no consumers attached and no appropriate queues configured. And i can't determine the message were stored or not.

Re: Want to fail produce messages with no bindings

Posted by Justin Bertram <jb...@apache.org>.
There is no way to forbid sending messages to an address with no bindings.
However, you can set
<send-to-dla-on-no-route>true</send-to-dla-on-no-route> address setting as
appropriate so that any message sent to an address with no bindings will go
to a dead-letter address of your choice. You can also inspect the unrouted
message count metric on the address control to see if messages were sent to
the address when there were no bindings.

Lastly, this is the "dev" list which is for discussion about broker
development, not about broker usage. You should use the "user" list [1] in
the future for questions like this.


Justin

[1] http://activemq.apache.org/contact/#mailing

On Fri, Jun 14, 2019 at 9:19 AM rkisluhin@gmail.com <rk...@gmail.com>
wrote:

> Helo, all!
>
> I want to configure Artemis server in such manner that it will forbid
> producing messages with no bindings to any address instead of droping the
> messages. How can i achieve this?
>
> Now i can't be sure the message will be stored on server, because the
> message will be dropped by server if no consumers attached and no
> appropriate queues configured. And i can't determine the message were
> stored or not.
>