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 7CBEACD92 for ; Sat, 22 Jun 2013 16:55:19 +0000 (UTC) Received: (qmail 67697 invoked by uid 500); 22 Jun 2013 16:55:18 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 67666 invoked by uid 500); 22 Jun 2013 16:55:18 -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 67658 invoked by uid 99); 22 Jun 2013 16:55:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Jun 2013 16:55:18 +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 claus.ibsen@gmail.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Jun 2013 16:55:13 +0000 Received: by mail-ie0-f175.google.com with SMTP id a13so21936453iee.34 for ; Sat, 22 Jun 2013 09:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=csvb4qUzqhTCFql6QHq7Bfjuh8c4gOjLTCx+wCqj/jY=; b=x2ll5+BW1ZCMJDFlhJejO4WP/FHNbwPgEqPspxR/KHmcm68XC2QztRIMgxms2w1dJZ uzlAN6NneSRc2O8I+8OqVoZORynxIP/tt1VwTWx1PsZJ7ZJWptiXQ6QvadtLfn/AQBCS lEUlsjzajW+ukxzUXzXMas2z8xTSXIt29zr2GgNbqxjN0GCmawD1m0XzyVgdaiL1fRRK HEVwB2PoHfJcUrpwmnlj6iOVN69INK6zdNmX7vEKJ2o8vBcX8sYO3peAl1aFyjYgmNLs D1IR0wiBzI/h2MQof7heK8Yc0RijpZOog/xjcV01sZ3nGaEOEi1gshpod3I2Gvnn43Ga ug5w== X-Received: by 10.42.249.72 with SMTP id mj8mr8180291icb.32.1371920092186; Sat, 22 Jun 2013 09:54:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.86.233 with HTTP; Sat, 22 Jun 2013 09:54:32 -0700 (PDT) In-Reply-To: <1371730659716-5734439.post@n5.nabble.com> References: <1371730659716-5734439.post@n5.nabble.com> From: Claus Ibsen Date: Sat, 22 Jun 2013 18:54:32 +0200 Message-ID: Subject: Re: Web server in ServiceMix with camel-jetty or camel-servlet To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi You can save the content to a file with from("jetty:http://localhost:{{port}}/myapp/myservice") // save the content to this dir .to("file:some-dir-name-here"); // after saving to file, then set an empty body as the response to the http client .transform(constant("")); On Thu, Jun 20, 2013 at 2:17 PM, cristisor wrote: > Hello, > > We are trying to send blob messages (large files) through an ActiveMQ broker > integrated in ServiceMix. It seems that this operation requires a ftp or a > http server for upload and download and we are wondering if this can be > achieved with a servicemix camel component implementation. I am looking over > the camel-jetty and camel-http components but my main problem is that what I > actually need is for the implementation of the HTTP PUT method to be the > default one, so that it can write the uploaded file on the disk and read it > afterwards. > > I see something like this in camel:jetty: > from("jetty:http://localhost:{{port}}/myapp/myservice").process(new > MyBookService()); > > This would sound great for a GET or POST request, but for the PUT request I > would have to implement the standard mechanism of the HTTP PUT method again. > > So, is there a way to route from a jetty endpoint, like the one above, to > some "magic" endpoint that basically does the standard HTTP PUT function and > saves the file on the server? > > Or maybe the camel:http could do this? Please look at the versions that I'm > using also. > > ActiveMQ version: 5.4.0-fuse-00-00 > ServiceMix version: 3.5.0-fuse-00-00 > > Thanks. > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Web-server-in-ServiceMix-with-camel-jetty-or-camel-servlet-tp5734439.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen