Skip to content

[#2271] Update Producer deliveryDelay behavior to only thrown when non-zero and always return zero - #2272

Open
mattrpav wants to merge 1 commit into
apache:mainfrom
mattrpav:amq-gh-2271
Open

[#2271] Update Producer deliveryDelay behavior to only thrown when non-zero and always return zero#2272
mattrpav wants to merge 1 commit into
apache:mainfrom
mattrpav:amq-gh-2271

Conversation

@mattrpav

@mattrpav mattrpav commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Change

This change modifies the in-progress behavior of deliveryDelay support by allowing all zero (0) values to continue to be processed. Zero (0) indicates no deliveryDelay, so the fact that this is hard-coded is no problem, as no value is going across the wire.

The UnsupportedOperationException is now thrown only when a non-zero value is specified on the setDeliveryDelay.

Driving factor

The messagehub jms pool queries the value, even when unused to retain state between instances of being borrowed and is gated around the ConnectionMetaData major and minor version. Since we changed those values, accessing of setDeliveryDelay is ungated and all Spring applications are unable to send JMS messages using ActiveMQ v6.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant