Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4EBAB9709 for ; Thu, 3 Jan 2013 18:30:14 +0000 (UTC) Received: (qmail 21266 invoked by uid 500); 3 Jan 2013 18:30:13 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 21188 invoked by uid 500); 3 Jan 2013 18:30:12 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 20986 invoked by uid 99); 3 Jan 2013 18:30:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 18:30:12 +0000 Date: Thu, 3 Jan 2013 18:30:12 +0000 (UTC) From: "Ben Frank (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-4243) When converting an Exchange to an ActiveMQMessage the original JMS headers are lost. 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-4243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543160#comment-13543160 ] Ben Frank commented on AMQ-4243: -------------------------------- I'll submit a patch for this > When converting an Exchange to an ActiveMQMessage the original JMS headers are lost. > ------------------------------------------------------------------------------------ > > Key: AMQ-4243 > URL: https://issues.apache.org/jira/browse/AMQ-4243 > Project: ActiveMQ > Issue Type: Improvement > Reporter: Ben Frank > > Obviously the JMS headers aren't always available, but if they are it would be helpful to have them. > This is particularly apparent when using an existing {{MessageListener}} as an endpoint. If you're consuming from an ActiveMQ endpoint, the {{Message}} passed to {{MessageListener}} will not have the complete or valid JMS headers. > Instead of creating a new {{ActiveMQMessage}} should either pass back the original as stored in the exchange, or an immutable copy. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira