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 D97EB971F for ; Thu, 23 Feb 2012 17:41:55 +0000 (UTC) Received: (qmail 56902 invoked by uid 500); 23 Feb 2012 17:41:55 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 56869 invoked by uid 500); 23 Feb 2012 17:41:55 -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 56856 invoked by uid 99); 23 Feb 2012 17:41:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 17:41:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of james.morgan.e@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 17:41:47 +0000 Received: by ghrr14 with SMTP id r14so262785ghr.32 for ; Thu, 23 Feb 2012 09:41:26 -0800 (PST) Received-SPF: pass (google.com: domain of james.morgan.e@gmail.com designates 10.50.89.232 as permitted sender) client-ip=10.50.89.232; Authentication-Results: mr.google.com; spf=pass (google.com: domain of james.morgan.e@gmail.com designates 10.50.89.232 as permitted sender) smtp.mail=james.morgan.e@gmail.com; dkim=pass header.i=james.morgan.e@gmail.com Received: from mr.google.com ([10.50.89.232]) by 10.50.89.232 with SMTP id br8mr3465736igb.30.1330018886649 (num_hops = 1); Thu, 23 Feb 2012 09:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=YP3k89xubstAogn5Fg8+afzfmhrn//JLlZYL69iSs3o=; b=IsSyKHDAJYsL2vyVPCkaWSsvyyM3aqjdW/CalO5DeF4Xc7LC1mju0X9NIs9CTWenKg ykJp7hicwyiTFlB2SMvfBmPBfLMm6ItZ1mT+dBbzQXC2m71XxP1WXJfILtF2Q1zIuGjO rvqxTL30gXV2fAdShmzeglTf9xI9jqODAjh2M= Received: by 10.50.89.232 with SMTP id br8mr2891848igb.30.1330018886386; Thu, 23 Feb 2012 09:41:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.43.120.1 with HTTP; Thu, 23 Feb 2012 09:40:56 -0800 (PST) From: James Morgan Date: Thu, 23 Feb 2012 17:40:56 +0000 Message-ID: Subject: Can only send one file to Amazon S3 without restart? To: users@camel.apache.org Content-Type: multipart/alternative; boundary=e89a8f3ba42944838604b9a5270c X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f3ba42944838604b9a5270c Content-Type: text/plain; charset=ISO-8859-1 Hi I've been using camel S3 component and a few problems have arisen but not sure where about they stem from. My issue is that once I have sent 1 file to S3 (which works fine, I can see the file in the correct bucket) I cannot send any more without restarting the application. I was wondering if I have missed something and I am not correctly closing the route/connection but am completely stumped, any help would be appreciated? The file is already set as the body on the route. Basic route set-up is as follows: public class DocumentStorageEngineRouting extends RouteBuilder { public static final String DOCUMENT_UPLOAD_QUEUE = "direct:document-upload-request"; @AutowiredProperty("aws.bucketName") private String bucketName = "###MY_BUCKET###"; @AutowiredProperty("aws.region") private String region = "eu-west-1"; @Override public void configure() throws Exception { final String awsEndpoint = String.format("aws-s3://%s?storageClass=REDUCED_REDUNDANCY®ion=%s&amazonS3Client=#amazonS3", this.bucketName, this.region); // @formatter:off from(DOCUMENT_UPLOAD_QUEUE) .setHeader(S3Constants.KEY, "my_file_name") .setHeader(S3Constants.CONTENT_TYPE, simple("application/pdf")) .to(awsEndpoint) .end(); // @formatter:on } } Camel 2.8.4, Spring 3.0.4, Java 6 Thanks James --e89a8f3ba42944838604b9a5270c--