camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Morgan <>
Subject Can only send one file to Amazon S3 without restart?
Date Thu, 23 Feb 2012 17:40:56 GMT
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

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 =

    private String bucketName = "###MY_BUCKET###";

    private String region = "eu-west-1";

    public void configure() throws Exception {

        final String awsEndpoint =


        // @formatter:off
            .setHeader(S3Constants.KEY, "my_file_name")
            .setHeader(S3Constants.CONTENT_TYPE, simple("application/pdf"))
        // @formatter:on

Camel 2.8.4, Spring 3.0.4, Java 6

Thanks James

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message