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 3CCA810076 for ; Mon, 2 Sep 2013 12:58:28 +0000 (UTC) Received: (qmail 43950 invoked by uid 500); 2 Sep 2013 12:58:27 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 43559 invoked by uid 500); 2 Sep 2013 12:58:26 -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 43542 invoked by uid 99); 2 Sep 2013 12:58:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 12:58:24 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_SOFTFAIL,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of sandeep.venkata@bt.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 12:58:19 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VGThe-0000xj-V4 for users@camel.apache.org; Mon, 02 Sep 2013 05:57:58 -0700 Date: Mon, 2 Sep 2013 05:57:58 -0700 (PDT) From: yvsandeep To: users@camel.apache.org Message-ID: <1378126678956-5738518.post@n5.nabble.com> Subject: Help required with Camel for HTTP service. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am new to Apache Camel.I am trying to create a HTTP ping-pong service using Apache Camel.Here is the flow. HTTP Client <-> Apache Camel <-> HTTP Webserver Here are the programs that I am using. Main pgm ----------- import org.apache.camel.spring.Main; public class Test { public static void main(String[] args) throws Exception { Main start = new Main(); start.enableHangupSupport(); System.out.println("Starting the listener...."); start.run(); System.out.println("Exit"); } } Routes -------- import org.apache.camel.builder.RouteBuilder; public class HTTPListener extends RouteBuilder { @Override public void configure() throws Exception { System.out.println("Routing...."); from("jetty:http://0.0.0.0:61000/myapp/myservice").to("jetty://http://remoteIP:61050/Dummy"); } } I have posted the message to /myapp/myservice.However,I do not see the request being routed to the remote http web server.Also,what should I do to get the response from the web server and send it to the http client? -- View this message in context: http://camel.465427.n5.nabble.com/Help-required-with-Camel-for-HTTP-service-tp5738518.html Sent from the Camel - Users mailing list archive at Nabble.com.