Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.8.0
-
None
-
Unknown
Description
(Note: The component in question should be camel-sjms2, but that was not an option in the component list.)
Messages cannot be consumed from an sjms2 endpoint with a delivery mode query parameter specified.
To reproduce this issue, I was using InOnlyQueueProducerTest in both the camel-sjms and camel-sjms2 components. In both tests, I changed the first producer endpoint URI to the following (where component is sjms and sjms2, respectively):
.to("[sjms,sjms2]:queue:" + TEST_DESTINATION_NAME + "?deliveryMode=1");
The sjms test continues to succeed, but the sjms2 test fails due to the consumer not receiving the message before timing out.
I could not determine a root cause, but as a workaround, I did discover that manually setting the JMSDeliveryMode header in the route or in the send call did work as expected.