Return-Path: X-Original-To: apmail-activemq-issues-archive@minotaur.apache.org Delivered-To: apmail-activemq-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC4AD18BA6 for ; Thu, 30 Jul 2015 14:58:04 +0000 (UTC) Received: (qmail 86070 invoked by uid 500); 30 Jul 2015 14:58:04 -0000 Delivered-To: apmail-activemq-issues-archive@activemq.apache.org Received: (qmail 86037 invoked by uid 500); 30 Jul 2015 14:58:04 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 86027 invoked by uid 99); 30 Jul 2015 14:58:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2015 14:58:04 +0000 Date: Thu, 30 Jul 2015 14:58:04 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (AMQ-5903) Message headers are lost when using the Broker Component for Camel MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-5903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp reopened AMQ-5903: ------------------------------ > Message headers are lost when using the Broker Component for Camel > ------------------------------------------------------------------ > > Key: AMQ-5903 > URL: https://issues.apache.org/jira/browse/AMQ-5903 > Project: ActiveMQ > Issue Type: Bug > Components: activemq-camel > Affects Versions: 5.11.1 > Reporter: Heath Kesler > Fix For: 5.11.2, 5.12.0 > > Attachments: amq-5903.patch > > > When using the broker camel component as defined here: http://activemq.apache.org/broker-camel-component.html > There appears to be an undocumented limitation of the broker component's current implementation. I need to know whether said limitation is by design or an oversight. If it's an oversight then I can submit a patch for it. > This example route does not work as expected - the JMSXGroupID header is lost when received by the broker component. > > > > 123 > > > > After single stepping with a debugger the component executes this code: https://github.com/apache/activemq/blob/master/activemq-camel/src/main/java/org/apache/activemq/camel/component/broker/BrokerProducer.java#L102 > As you can see from the method's implementation it only copies over a fixed set of six well-known headers. All other headers on the inbound message are discarded. Why not copy over every header? Consequently the JMSXGroupID header is not copied, despite being present on the inbound message. > This would appear to be a bug in my opinion as I do not believe we should be loosing any headers on a message in this case. -- This message was sent by Atlassian JIRA (v6.3.4#6332)