You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/06/13 20:06:51 UTC
[jira] [Resolved] (CAMEL-4100) camel JMS endpoints should accept
messages with JMSDeliveryMode as a non-numeric String such as values
"PERSISTENT" or "NON_PERSISTENT"
[ https://issues.apache.org/jira/browse/CAMEL-4100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-4100.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.8.0
> 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
> Assignee: Claus Ibsen
> Fix For: 2.8.0
>
>
> 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