Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 18353 invoked from network); 21 May 2008 14:39:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2008 14:39:15 -0000 Received: (qmail 15545 invoked by uid 500); 21 May 2008 14:39:17 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 15526 invoked by uid 500); 21 May 2008 14:39:16 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 15515 invoked by uid 99); 21 May 2008 14:39:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2008 07:39:16 -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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2008 14:38:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CA29E234C11A for ; Wed, 21 May 2008 07:38:54 -0700 (PDT) Message-ID: <596830409.1211380734821.JavaMail.jira@brutus> Date: Wed, 21 May 2008 07:38:54 -0700 (PDT) From: "Willem Jiang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-536) camel-cxf component not propagating context data In-Reply-To: <156601609.1211361294386.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42926#action_42926 ] Willem Jiang commented on CAMEL-536: ------------------------------------ Yes, we can get the context from exchange header or the in Message. I will do a quick fix for it. > camel-cxf component not propagating context data > ------------------------------------------------ > > Key: CAMEL-536 > URL: https://issues.apache.org/activemq/browse/CAMEL-536 > Project: Apache Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 1.3.0 > Reporter: Eamonn Dwyer > Assignee: Willem Jiang > Original Estimate: 2 days > Remaining Estimate: 2 days > > For POJO data formats the CxfProducer currently invokes the following method to invoke on a target server > result = client.invoke(operation, parameters.toArray()); > This fails to setup the Request and Response contexts for the out (request) message and in (response) message. It should instead be copying the relevant data from the consumer and invoking the following operation on the Client interface > Object[] invoke(BindingOperationInfo oi, Object[] params, Map context) throws Exception; > Likewise the PAYLOAD and MESSAGE data formats are not setting up their contexts before they call the dispatch operation. In fact there is comments in the current codebase... > // invoke the message prepare the context > Map context = new HashMap(); > Map requestContext = new HashMap(); > Map responseContext = new HashMap(); > // TODO Get the requestContext from the CamelExchange > context.put(CxfClient.REQUEST_CONTEXT, requestContext); > context.put(CxfClient.RESPONSE_CONTEXT, responseContext); > The fix should also include a fix for all three data format types -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.