I have to test the behaviour of jms-bridges between two hornetq endpoints. In case of network errors it seems that the bridge or connection-factory sends messages to the dlq-queue.
Thats not a good solution. How can I tell HornetQ or the Queue or the Bridge to let the message on the source-queue?
I tried to add address-settings like this.
<address-setting match="de.#"> <dead-letter-address>jms.queue.DLQ</dead-letter-address> <expiry-address>jms.queue.ExpiryQueue</expiry-address> <redelivery-delay>5</redelivery-delay> <max-delivery-attempts>-1</max-delivery-attempts> <max-size-bytes>-1</max-size-bytes> <page-size-bytes>10485760</page-size-bytes> <page-max-cache-size>5</page-max-cache-size> <address-full-policy>PAGE</address-full-policy> <message-counter-history-day-limit>10</message-counter-history-day-limit> <redistribution-delay>-1</redistribution-delay> <address-setting>
But I got the same behaviour...
you have done this via <max-delivery-attempts>-1</max-delivery-attempts> maybe your match is wrong, remember if its a jms queue it will be prefixed by jms.queue.