camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CAMEL-1689) JMS-Headers are ignored in Producer
Date Wed, 01 Jul 2009 09:04:07 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52602#action_52602
] 

Claus Ibsen edited comment on CAMEL-1689 at 7/1/09 2:02 AM:
------------------------------------------------------------

To use a different JMSDestiantion you can do
{code}
exchange.setProperty("JMSDestination", destination);
{code}

Maybe we can support a special header to override the destination as a string name

To send it to bar instead of the regular destination
{code}
exchange.getIn().setHeader(JmsConstants.JMS_DESTINATION_NAME, "activemq:queue:bar");
{code}
as its often easier to work with String names for JMS destinations than javax.jms.Destination
objects.

      was (Author: davsclaus):
    To use a different JMSDestiantion you can do
{code}
exchange.setProperty("JMSDestination", destination);
{code}

Maybe we can support a special header to override the destination as a string name

To send it to bar instead of the regular destination
{code}
exchange.getIn().setHeader(JmsConstants.JMS_DESTINATION_NAME, "activemq:queue:bar");
{code}
  
> JMS-Headers are ignored in Producer
> -----------------------------------
>
>                 Key: CAMEL-1689
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1689
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.0-M1
>            Reporter: Siegfried Wirth
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> Camel jms producer ignores some JMSHeaders. For example the header JMSPriority is ignored
- due to the comment in the code, because it is set by the producer. But it should not only
be set by the produer due to the received message, it should also be possible to set a priority
using the JMSPriority header on the consumer. (See also the option preserveMessageQos on the
jms endpoint - if every JMSHeader is ignored by the producer it is impossible to set Qos-Properties
on the message.)
> The reason for the bug is in org.apache.camel.component.jms.JmsBinding#appendJmsProperty.

> The follwoing JMS message headers are useful for sending messages and therefore should
be copied to the jms message:
> - JMSDestination
> - JMSDeliveryMode
> - JMSExpiration
> - JMSPriority
> - JMSMessageID
> - JMSTimestamp

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message