Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E56710510 for ; Thu, 5 Mar 2015 08:53:15 +0000 (UTC) Received: (qmail 96568 invoked by uid 500); 5 Mar 2015 08:53:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 96518 invoked by uid 500); 5 Mar 2015 08:53:15 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 96506 invoked by uid 99); 5 Mar 2015 08:53:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2015 08:53:14 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.213.182 as permitted sender) Received: from [209.85.213.182] (HELO mail-ig0-f182.google.com) (209.85.213.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2015 08:52:50 +0000 Received: by igbhn18 with SMTP id hn18so44133627igb.2 for ; Thu, 05 Mar 2015 00:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:content-disposition; bh=T6tDX/QtwJ52Aozw6hi+LRnXHCAYmRKmJh18EnJMBdQ=; b=jZTOTiIyGRiUCIJtxvVa/2ThwGUM6Whgv0KPvpbrm/bq3IqHpibp2idVxnaGM2G+eU KAcRiaVIX3TuCgyxHQt4c+IDNTwBts/yf84W93VuXDdgiTIVdccSp7T3+kUN6/kkyQWx S+s9buALWmUtHl8RdgmGpYmyN/BtTDV6akiYQ/KPTMCbgmRD68sHQrkdd4d81F/YZ4le 1gCchhizqVQLrT1ZYIT/TkCT97i5Sc2ZSaNOMDWgUmfYTRFjtPOBpJrrfcmCszOR8SdJ p9FCHnV6q6dZqi9a9TAmKTaQGNEdcgM1MgGYvAgpQ0swaPv3Csfg+O48mV9f4zOODG/z XjEw== X-Received: by 10.50.171.170 with SMTP id av10mr44943405igc.28.1425545568484; Thu, 05 Mar 2015 00:52:48 -0800 (PST) Received: from dhcp-128-42.nay.redhat.com ([119.254.196.72]) by mx.google.com with ESMTPSA id s10sm4632802igr.2.2015.03.05.00.52.44 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Mar 2015 00:52:47 -0800 (PST) Date: Thu, 5 Mar 2015 16:52:21 +0800 From: Willem Jiang To: users@camel.apache.org, cgiera Message-ID: In-Reply-To: <1425544878226-5763635.post@n5.nabble.com> References: <1425544550068-5763634.post@n5.nabble.com> <1425544878226-5763635.post@n5.nabble.com> Subject: Re: Camel Cxf: How can I change the namespace of my incoming message? X-Mailer: Airmail (249) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi,=C2=A0 It should should work, I=E2=80=99m not sure if it relates to the=C2=A0Pro= pertyPlaceholderDelegateRegistry that you use. Here is the unit test=5B1=5D about it in camel-cxf. =5B1=5Dhttps://github.com/apache/camel/blob/master/components/camel-cxf/s= rc/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java=23L76 -- =20 Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On March 5, 2015 at 4:41:46 PM, cgiera (christoph.giera=40mic-cust.com) w= rote: > I think it should work with the cxfEndpointConfigurer-parameter: > RouteBuilder configure method: > =7Braw=7D > JndiRegistry registry =3D (JndiRegistry) ( > =20 > (PropertyPlaceholderDelegateRegistry)this.getContext().getRegistry()).g= etRegistry(); =20 > =20 > MyEndpointConfigurer myConf=3D new MyEndpointConfigurer (); > =20 > //and here, it is bound to the registry > registry.bind(=22myConf=22, myConf); > =20 > =20 > from(=22cxf:/myService=3FserviceClass=3DmyServiceClass&cxfEndpointConfi= gurer=3D=23myConf=22 =20 > =7Braw=7D > =20 > But I don't get this work because I get the following error when starti= ng > the application: > =46ailed to resolve endpoint: > cxf:///myService=3FcxfEndpointConfigurer=3D%23myConf&logging=46eatureEn= abled=3Dtrue&serviceClass=3DmyServiceClass =20 > due to: Could not find a suitable setter for property: cxfEndpointConfi= gurer > as there isn't a setter method with same type: java.lang.String nor typ= e > conversion possible: No type converter available to convert from type: > java.lang.String to the required type: > org.apache.camel.component.cxf.CxfEndpointConfigurer with value =23myCo= nf > =20 > How can I configure the cxfEndpointConfigurer parameter in a RouteBuild= er=3F > =20 > kind regards, > Christoph > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-C= xf-How-can-I-change-the-namespace-of-my-incoming-message-tp5763634p576363= 5.html =20 > Sent from the Camel - Users mailing list archive at Nabble.com. > =20