Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 38559 invoked from network); 2 Sep 2007 20:12:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Sep 2007 20:12:57 -0000 Received: (qmail 51348 invoked by uid 500); 2 Sep 2007 20:12:52 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 51326 invoked by uid 500); 2 Sep 2007 20:12:52 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 51317 invoked by uid 99); 2 Sep 2007 20:12:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Sep 2007 13:12:52 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Sep 2007 20:13:57 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IRvo2-0001DI-Dm for camel-user@activemq.apache.org; Sun, 02 Sep 2007 13:12:26 -0700 Message-ID: <12452890.post@talk.nabble.com> Date: Sun, 2 Sep 2007 13:12:26 -0700 (PDT) From: stpdave To: camel-user@activemq.apache.org Subject: So many options, which to chose MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: david@stpenable.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, The problem I first want to solve with Camel is this: My servlet based application produces a file with a set of arguments in it. Like so arg1,arg2,argN I want to pick up this file content, and append it to the end of a http url, like so http://www.example.com/cgi/getres?arg1,arg2,argN using POST. The http server response is a set of data I want to write to a file. I already have a client class I used to use with Mule (yes I am a refugee). It encapsulates an endpoint uri, whether there is a return payload, whether it is syncronous and another piece of String data. I can change this but for the moment prefer not to, just reuse it with Camel. The problem I have is I am spoilt for choice with Camel in the number of options I have to achieve this end. so if someone can advise on the optimum approach I will give it a whirl. My current thinking is I can use the uri method of adding components I need. Then store the routing in the spare String object in my current client class as Groovy script. I am a little uncertain of the way these components are strung together. I would guess like this: from("file://test").to("http://www.example.com/cgi/getres?"+outputFromFileAsString).to("file://outputfile"); but am not sure how you get the content of the source file into a string. Also whether the return from the http POST can automatically be mapped into the outputfile via a file endpoint. I realise my ideas are still abstract at this stage so help in making them real is much appreciated. Thx. David -- View this message in context: http://www.nabble.com/So-many-options%2C-which-to-chose-tf4369068s22882.html#a12452890 Sent from the Camel - Users mailing list archive at Nabble.com.