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 84674E4A1 for ; Wed, 13 Mar 2013 19:14:57 +0000 (UTC) Received: (qmail 64301 invoked by uid 500); 13 Mar 2013 19:14:57 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 64252 invoked by uid 500); 13 Mar 2013 19:14:57 -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 64243 invoked by uid 99); 13 Mar 2013 19:14:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 19:14:56 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 19:14:51 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UFr89-0006t5-Uf for users@camel.apache.org; Wed, 13 Mar 2013 12:14:29 -0700 Date: Wed, 13 Mar 2013 12:14:29 -0700 (PDT) From: ramrubio To: users@camel.apache.org Message-ID: <1363202069943-5729139.post@n5.nabble.com> In-Reply-To: References: <1362775568287-5728852.post@n5.nabble.com> <1362846480862-5728879.post@n5.nabble.com> <1362865771740-5728885.post@n5.nabble.com> <1363105985575-5729004.post@n5.nabble.com> Subject: Re: Routing REST request to external URI MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the feedback. I've run into another issue. I'm trying to route an incoming URI to a different URI but HttpProducer method appends the original URI to the new route in HttpProducer.createURL. The following is the use case: 1. Client requests http://server1:8080/public/users 2. Proxy receives and routes request to http://server2:8080/private/users My camel proxy produces the following in step 2: http://server2:8080/private/users/public/users My setup is as follows: 1. Setup Dynamic Router this.from("servlet:///?matchOnUriPrefix=true").dynamicRouter(method(CamelRoute.class, "slip")); 2. Slip method return new http route with bridgeEndpoint=true. Is there anyway to prevent original path from being appended? Or maybe i'm missing a configuration. Thanks in advance. /Ramon -- View this message in context: http://camel.465427.n5.nabble.com/Routing-REST-request-to-external-URI-tp5728852p5729139.html Sent from the Camel - Users mailing list archive at Nabble.com.