You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Shannon Gallagher (Jira)" <ji...@apache.org> on 2021/07/19 20:09:00 UTC
[jira] [Created] (CAMEL-16811) Cannot consume messages from sjms2
endpoint with deliveryMode set
Shannon Gallagher created CAMEL-16811:
-----------------------------------------
Summary: Cannot consume messages from sjms2 endpoint with deliveryMode set
Key: CAMEL-16811
URL: https://issues.apache.org/jira/browse/CAMEL-16811
Project: Camel
Issue Type: Bug
Components: camel-sjms
Affects Versions: 3.8.0
Reporter: Shannon Gallagher
(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):
{code:java}
.to("[sjms,sjms2]:queue:" + TEST_DESTINATION_NAME + "?deliveryMode=1");
{code}
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)