Skip to content

Jakarta 3.1 proper JMX provider properties handling - #2864

Open
mattrpav wants to merge 6 commits into
apache:mainfrom
mattrpav:amq-jakarta-3.1-jmsx-properties
Open

mattrpav wants to merge 6 commits into
apache:mainfrom
mattrpav:amq-jakarta-3.1-jmsx-properties

Conversation

@mattrpav

@mattrpav mattrpav commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR is ready and slides the behavior behind the strictCompliance flag.

Background

Provider-specific JMSX properties should not be allowed to be set by application code. ActiveMQ previously allowed this, so throwing an exception would be a SEMVER violation without a major version update.

This changes allows ActiveMQ to become more Jakarta compliant in a minor release, while also retaining the ability to perform an administrative copy at times that includes thos values. For example, a bridge or migration may want to copy those headers across from one JMS system to another.

Related

replaces [#1853]

pradeep85841 and others added 6 commits November 13, 2026 17:03
…a foreign message

On a strict connection, sending a message from another provider failed
with MessageNotWriteableException when that message listed a property
such as JMSXDeliveryCount. The conversion now leaves those properties
out on a strict connection.

transformMessage and copyProperties have an overload that takes a
strictComplianceOverride flag. True copies the provider-set values even
on a strict connection, for example when bridging. The consumer passes
true for a message returned by a consumer transformer, since that
message is on its way to the application.

The set of property names is renamed to JMSX_PROVIDER_PROPERTIES.
@mattrpav mattrpav added this to the Jakarta 3.1/JMS 2.0 support milestone Nov 13, 2026
@mattrpav mattrpav self-assigned this Nov 13, 2026
@mattrpav mattrpav changed the title Jakart 3.1 JMX Provider Properties handling Jakart 3.1 proper JMX provider properties handling Nov 13, 2026
@mattrpav mattrpav changed the title Jakart 3.1 proper JMX provider properties handling Jakarta 3.1 proper JMX provider properties handling Nov 13, 2026
@mattrpav mattrpav moved this from Backlog to In progress in Apache ActiveMQ v6.5.0 Nov 14, 2026
@mattrpav mattrpav moved this from In progress to In review in Apache ActiveMQ v6.5.0 Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants