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 594E510FCB for ; Thu, 4 Jul 2013 01:28:47 +0000 (UTC) Received: (qmail 1700 invoked by uid 500); 4 Jul 2013 01:28:46 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 1666 invoked by uid 500); 4 Jul 2013 01:28:46 -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 1648 invoked by uid 99); 4 Jul 2013 01:28:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 01:28:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.220.49 as permitted sender) Received: from [209.85.220.49] (HELO mail-pa0-f49.google.com) (209.85.220.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 01:28:42 +0000 Received: by mail-pa0-f49.google.com with SMTP id ld11so788561pab.22 for ; Wed, 03 Jul 2013 18:28:22 -0700 (PDT) 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:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=mc0eQaiomZ0iiiy3OHwndsB/N9Z47Ciyhnk+bvNg/jw=; b=t56v6qRg/oGItS7U0EEQXTohY6yWW9XJP6aoTHOk5Ez962SHJVwg4w3LEDHNQk91zt 6MWVkKT5T59tCrSAwxz0b5tkallDAo91vrMpV5QatcDMET97wRZ14ksd60EzqWa/eU9c mwRqUz+ZIUxkwy+yhrs4svjhmtm9PJX90umGuvdRSghuxCx0/v7ukYN5+oaCH+SXi0G5 YxLcqeICOEEZSCjQyLna5V26eky1E1O/r9auYYBNy7F9nXJNmAsyU56Iw4isLXrlcpWe JpmxQiaxZlk8JK65ca0w7jBqXMkfACgo0Xt4ufbeNMnzXs54olRwML3A4RbrqjRGGH/v aIFQ== X-Received: by 10.67.1.106 with SMTP id bf10mr4833389pad.162.1372901302509; Wed, 03 Jul 2013 18:28:22 -0700 (PDT) Received: from [192.168.1.135] ([125.34.5.10]) by mx.google.com with ESMTPSA id qv4sm572361pbc.16.2013.07.03.18.28.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Jul 2013 18:28:22 -0700 (PDT) Date: Thu, 4 Jul 2013 09:28:18 +0800 From: Willem jiang To: users@camel.apache.org Message-ID: In-Reply-To: <37177EFD4F3CA548BBE8917F65CECC314675EB92@chapdt3chm01.ad.tiaa-cref.org> References: <37177EFD4F3CA548BBE8917F65CECC314675EB92@chapdt3chm01.ad.tiaa-cref.org> Subject: Re: Sending object to a Dynamic Route X-Mailer: sparrow 1.6.4 (build 1176) 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 You just need to make sure the message body is right, then you can route = the request to the endpoint by return the URI string. It's hard to setup camel-cxf endpoint just by using some simple String, b= ecause you may need to configure the CX=46 endpoint through Spring or Blu= eprint. -- =20 Willem Jiang Red Hat, Inc. =46useSource is now part of Red Hat Web: http://www.fusesource.com =7C http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) = (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On Wednesday, July 3, 2013 at 5:04 AM, Singh, Surya Prakash wrote: > Hi, > =20 > =20 > How do I send an Object to a cxf route inside a Dynamic route, > =20 > =46or ex: > public String route(Exchange exchange =7B > if (requestStatus instanceof RequestPending) =7B =20 > return =22cxf://....=22; // Need to send an object to this cxf route. > =7D > =7D > =20 > Outside of an dynamic route I could have sent this using the following,= but I am not sure how to do that inside a dynamic router. > template.requestBody(=22direct:start=22, new Object=5B=5D=7Brequests, n= ull=7D, MessageContentsList.class); > =20 > Appreciate any help of this =20 > Thank you=21 > Regards, > =20 > ***********************************************************************= ** > This e-mail may contain confidential or privileged information. > If you are not the intended recipient, please notify the sender immedia= tely and then delete it. > =20 > TIAA-CRE=46 > ***********************************************************************= **