Okay. I am building the 2.20.x branch which is using 2.20.2-SNAPSHOT for dependencies. Hopefully, that will work too.
Kendall On 12/19/17, 10:30 AM, "Andrea Cosentino" <ancosen1...@yahoo.com.INVALID> wrote: You need to use the apache snapshot repository, but usually it's not aligned very well.. My suggestion is building apache camel from code and get the snapshot in your local repo Inviato da Yahoo Mail su Android Il mar, 19 dic, 2017 alle 18:20, Kendall Shaw<kendall.s...@workday.com> ha scritto: Thank you. How do I use the snapshot version? I’ve tried specifying the apache snapshot repository but maven can’t resolve camel-spring-boot-dependencies:pom:2.20.1-SNAPSHOT. Kendall From: Andrea Cosentino <ancosen1...@yahoo.com> Reply-To: Andrea Cosentino <ancosen1...@yahoo.com> Date: Tuesday, December 19, 2017 at 1:25 AM To: "users@camel.apache.org" <users@camel.apache.org>, Kendall Shaw <kendall.s...@workday.com> Subject: Re: aws-s3 client is immutable when created with the builder Using camel 2.21.0-SNAPSHOT and adding the credentials inside Application.java I don't have any kind of trouble. [INFO] Using org.apache.camel.cdi.Main to initiate a CamelContext [INFO] Starting Camel ... 2017-12-19 10:24:00,812 [cdi.Main.main()] INFO Version - WELD-000900: 2.4.5 (Final) 2017-12-19 10:24:00,962 [cdi.Main.main()] INFO Bootstrap - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously. 2017-12-19 10:24:01,087 [cdi.Main.main()] INFO Event - WELD-000411: Observer method [BackedAnnotatedMethod] private org.apache.camel.cdi.CdiCamelExtension.processAnnotatedType(@Observes ProcessAnnotatedType<?>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds. 2017-12-19 10:24:01,862 [cdi.Main.main()] INFO CdiCamelExtension - Camel CDI is starting Camel context [camel-example-aws-s3-cdi] 2017-12-19 10:24:01,863 [cdi.Main.main()] INFO DefaultCamelContext - Apache Camel 2.21.0-SNAPSHOT (CamelContext: camel-example-aws-s3-cdi) is starting 2017-12-19 10:24:01,865 [cdi.Main.main()] INFO ManagedManagementStrategy - JMX is enabled 2017-12-19 10:24:01,948 [cdi.Main.main()] INFO DefaultTypeConverter - Type converters loaded (core: 193, classpath: 2) 2017-12-19 10:24:02,469 [cdi.Main.main()] INFO DefaultCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at https://urldefense.proofpoint.com/v2/url?u=http-3A__camel.apache.org_stream-2Dcaching.html&d=DwIFaQ&c=DS6PUFBBr_KiLo7Sjt3ljp5jaW5k2i9ijVXllEdOozc&r=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA&m=hbWTuZVG0JuwSNlyeT6DHsUtwDrKjzH-lw-fiAl7xn4&s=_XXH6vQjznbV3h09uJcnrY3h5IQw0NF0ze-wkXlpe-E&e= 2017-12-19 10:24:05,319 [cdi.Main.main()] INFO DefaultCamelContext - Route: route1 started and consuming from: aws-s3://devvox?amazonS3Client=%23amazonS3Client&delay=5000&deleteAfterRead=false&maxMessagesPerPoll=25 2017-12-19 10:24:05,320 [cdi.Main.main()] INFO DefaultCamelContext - Total 1 routes, of which 1 are started 2017-12-19 10:24:05,320 [cdi.Main.main()] INFO DefaultCamelContext - Apache Camel 2.21.0-SNAPSHOT (CamelContext: camel-example-aws-s3-cdi) started in 3.458 seconds 2017-12-19 10:24:05,332 [cdi.Main.main()] INFO Bootstrap - WELD-ENV-002003: Weld SE container 89309287-1b48-4ad6-8283-bb3e4ebde462 initialized 2017-12-19 10:24:07,203 [aws-s3://devvox] INFO consuming - Consumer Fired! 2017-12-19 10:24:07,207 [aws-s3://devvox] INFO route1 - Replay Message Sent to file:s3out prova2 . . . -- Andrea Cosentino ---------------------------------- Apache Camel PMC Member Apache Karaf Committer Apache Servicemix PMC Member Email: ancosen1...@yahoo.com Twitter: @oscerd2 Github: oscerd On Monday, December 18, 2017, 11:13:27 PM GMT+1, Kendall Shaw <kendall.s...@workday.com> wrote: Hi, I am trying to run the camel-example-cdi-aws-s3 example and I get an error that the client is immutable. I had to change the example for keys and bucket name. So, maybe that is where the problem is. The modified route I use is: from("aws-s3:my-scratch-bucket?accessKey=XXXXX&secretKey=XXXXX&deleteAfterRead=false&maxMessagesPerPoll=25&delay=5000&amazonS3Endpoint=us-west-1") where XXXXX is the access key or secret. I also commented out the amazonS3Client method. With the method it was throwing UnknownHostException about my-scratch-bucket.us-west-1. Do you know what the problem is? Should I use an earlier version of camel? Kendall