camel JMS endpoints should accept messages with JMSDeliveryMode as a
non-numeric String such as values "PERSISTENT" or "NON_PERSISTENT"
---------------------------------------------------------------------------------------------------------------------------------------
Key: CAMEL-4100
URL: https://issues.apache.org/jira/browse/CAMEL-4100
Project: Camel
Issue Type: Improvement
Components: camel-jms
Reporter: james strachan
If you try sending a message to a JMS endpoint with a header JMSDeliveryMode of
value PERSISTENT / NON-PERSISTENT it generates...
{code}
Caused by: java.lang.NullPointerException
at
org.apache.camel.component.jms.JmsBinding.appendJmsProperty(JmsBinding.java:326)
at
org.apache.camel.component.jms.JmsBinding.appendJmsProperties(JmsBinding.java:304)
{code}
Firstly we should handle null being returned when converting the
"JMSDeliveryMode" header (see line 325)
Secondly it would be nice to detect PERSIST* or NON* as String values and map
those to DeliveryMode.PERSISENT / DeliveryMode.NON_PERSISTENT respectively.
Using a 0 or 1 is OK, but using a more descriptive string would be useful
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira