This is a bug. The problem is that the broker is using a long value when it
should be using an int value instead as defined in the JMS specification. A
very similar bug [1] was fixed a while back.
I just opened a new issue for this [2]. I'll send a PR shortly.
Thanks for the report!
Justin
[1]
Hi,
Test environment: Linux Fedora 32, OpenJDK Runtime Environment (build
1.8.0_275-b01), activemq-cpp-library-3.9.5, apache-artemis-2.16.0
1) Start Artemis server with default configuration, then run from
apache-activemq-5.15.11/bin: "activemq producer", "activemq consumer"
---> all ok, all