Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 68917 invoked from network); 7 May 2008 10:24:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 10:24:13 -0000 Received: (qmail 17056 invoked by uid 500); 7 May 2008 10:24:15 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 16995 invoked by uid 500); 7 May 2008 10:24:14 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 16984 invoked by uid 99); 7 May 2008 10:24:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 03:24:14 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 10:23:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5E26E2388A35; Wed, 7 May 2008 03:23:52 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r654066 - in /cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi: JBIDestinationOutputStream.java JBIDispatcherUtil.java Date: Wed, 07 May 2008 10:23:51 -0000 To: commits@cxf.apache.org From: ffang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080507102352.5E26E2388A35@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ffang Date: Wed May 7 03:23:51 2008 New Revision: 654066 URL: http://svn.apache.org/viewvc?rev=654066&view=rev Log: [CXF-1574]JBI transport should support copy inbound normalizedmessage property to outbound normalizedmessage Modified: cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDispatcherUtil.java Modified: cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java URL: http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java?rev=654066&r1=654065&r2=654066&view=diff ============================================================================== --- cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java (original) +++ cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDestinationOutputStream.java Wed May 7 03:23:51 2008 @@ -21,6 +21,7 @@ import java.io.IOException; import java.io.InputStream; +import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger; @@ -106,6 +107,12 @@ .getDataHandler()); } } + //copy properties + Set keys = inMessage.keySet(); + for (String key : keys) { + msg.setProperty(key, inMessage.get(key)); + } + //copy contents msg.setContent(new DOMSource(doc)); xchng.setMessage(msg, "out"); Modified: cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDispatcherUtil.java URL: http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDispatcherUtil.java?rev=654066&r1=654065&r2=654066&view=diff ============================================================================== --- cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDispatcherUtil.java (original) +++ cxf/branches/2.0.x-fixes/rt/transports/jbi/src/main/java/org/apache/cxf/transport/jbi/JBIDispatcherUtil.java Wed May 7 03:23:51 2008 @@ -21,6 +21,7 @@ import java.io.IOException; import java.io.InputStream; +import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger; @@ -132,9 +133,16 @@ getLogger().fine("dispatch method: " + opName); NormalizedMessage nm = exchange.getMessage("in"); + try { MessageImpl inMessage = new MessageImpl(); + Set normalizedMessageProps = nm.getPropertyNames(); + for (Object name : normalizedMessageProps) { + inMessage.put((String)name, nm.getProperty((String)name)); + + } + inMessage.put(MessageExchange.class, exchange);