You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Siegfried Wirth (JIRA)" <ji...@apache.org> on 2009/06/09 17:51:35 UTC

[jira] Created: (CAMEL-1689) JMS-Headers are ignored in Producer

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


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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52531#action_52531 ] 

Claus Ibsen commented on CAMEL-1689:
------------------------------------

Added unit test for starters: 789236.

> 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.1.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.


[jira] Issue Comment Edited: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52600#action_52600 ] 

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

We can set the following headers now requiring that you enable the {{preserveMessageQos=true}} on the endpoint to take over:
- JMSDeliveryMode
- JMSExpiration
- JMSPriority

Otherwise the QoS of the endpoint is used.

      was (Author: davsclaus):
    We can set the following headers now
- JMSDestination
So if a JMSDestination has been set as a header then Camel will use that.

And these requires that you enable the {{preserveMessageQos=true}} on the endpoint to take over:
- JMSDeliveryMode
- JMSExpiration
- JMSPriority

Otherwise the QoS of the endpoint is used.
  
> 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.


[jira] Updated: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-1689:
-------------------------------

    Fix Version/s:     (was: 2.1.0)
                   2.0.0

We can set the following headers now
- JMSDestination
So if a JMSDestination has been set as a header then Camel will use that.

And these requires that you enable the {{preserveMessageQos=true}} on the endpoint to take over:
- JMSDeliveryMode
- JMSExpiration
- JMSPriority

Otherwise the QoS of the endpoint is used.

> 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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52602#action_52602 ] 

Claus Ibsen commented on CAMEL-1689:
------------------------------------

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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52614#action_52614 ] 

Claus Ibsen commented on CAMEL-1689:
------------------------------------

[15:33]  <cibsen> yeah a good idea to have it on component instead
[15:34]  <cibsen> and the xxxConstants is introduced in 2.0 so we could change it before final


> 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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52529#action_52529 ] 

Claus Ibsen commented on CAMEL-1689:
------------------------------------

Looks like Spring JMS Template have default configuration for eg. JMSPriority = 4. So even if you set the JMSPriority on the javax.jms.Message object it will be disregarded and Spring uses its default value of 4 instead.

> 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.1.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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52613#action_52613 ] 

Hadrian Zbarcea commented on CAMEL-1689:
----------------------------------------

@Claus, component specific properties is a general problem that exists with other components.  Since very few components have a XyzConstants class, but pretty much all of them have a XyzComponent I am thinking of putting the configuration specific property/headers in the XyzComponent class and make it consistent across all components.

What do you think?

> 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.


[jira] Resolved: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1689.
--------------------------------

    Resolution: Fixed

trunk: 790144.

> 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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52599#action_52599 ] 

Claus Ibsen commented on CAMEL-1689:
------------------------------------

Looks like I found a glitch in camel-jms.

Its possible with Spring JMSTemplate to use reuse template but sending custom values for
- JMSDeliveryMode
- JMSPriority
- JMSExpiration

That requires however currently that the option {{PreserveMessageQos}} is enabled on the endpoint.

> 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.1.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.


[jira] Assigned: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-1689:
----------------------------------

    Assignee: Claus Ibsen

> 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.1.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.


[jira] Issue Comment Edited: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52601#action_52601 ] 

Claus Ibsen commented on CAMEL-1689:
------------------------------------

JMSDestination is *not* possible to set in a IN header as it can cause jms routing to go into looping such as:

{code}
from("jms:queue:foo").to("jms:queue:bar")
{code}

In this case when we receive a message from *foo* then it will populate a Camel message that contains the details from the javax.jms.Message and thus also {{JMSDestination}}.
And it will be {{queue://foo}}. So when the message is routed to the {{to}} endpoint then it will mistakenly send it back to itself, instead of using the {{queue:bar}} destination defined on the endpoint.




> 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.


[jira] Updated: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-1689:
-------------------------------

    Fix Version/s: 2.1.0

Thanks for reporting.

James Strachan had a look and came up with:

[10:00]  <jstrachan> davsclaus: yeah, looks like we could let folks specify those headers; it'll be a tad complex to implement given the complex code path in JmsProducer - and the fact that we wanna clear down the fact that we are customizing the QoS on the JmsTemplate after we have sent them (so we might wanna create a new temporary JmsTemplate if any of the QoS headers are specified on the message) - but its possible, yes


I put it on the roadmap for Camel 2.1.
But maybe we take a stab at it before so it will be in 2.0.

> 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
>             Fix For: 2.1.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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53517#action_53517 ] 

Claus Ibsen commented on CAMEL-1689:
------------------------------------

trunk: 801884 fixing setting JMSPriority with a value as zero is accepted as well

> 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-M3
>
>
> 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.


[jira] Commented: (CAMEL-1689) JMS-Headers are ignored in Producer

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52584#action_52584 ] 

Claus Ibsen commented on CAMEL-1689:
------------------------------------

Creating a temporary JmsTemplate is the only option if user is having custom QoS headers

> 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.1.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.