[ANNOUNCEMENT] Apache Camel 2.21.0 Released

2018-03-15 Thread Gregor Zurowski
The Camel community announces the immediate availability of Camel 2.21.0 minor release. This release contains 400 fixes and improvements committed in the past few weeks. The artifacts are published and ready for you to download [1] either from the Apache mirrors or from the Central Maven repositor

Re: Propagating tracing headers

2018-03-15 Thread Gary Brown
Hi James You need to use the camel-opentracing component to propagate the active span via the camel context. Information on configuring for spring-boot can be found here[1], as well as an example[2] - see service1. As the trace context is being provided as B3 format, you will need to provide a tr

Propagating tracing headers

2018-03-15 Thread James Falkner
Hey all, I've been doing some experimenting with tracing Camel apps (that happen to be running in an Istio-ified OpenShift but that's not important). My app consists of some camel routes exposed with REST that call out to other RESTful services to form an aggregate response to send back to th

Re: Run route and then stop context

2018-03-15 Thread Claus Ibsen
Hi Yeah or if you use Main to startup Camel you can configure its duration options to number of max messages, time, etc. http://static.javadoc.io/org.apache.camel/camel-core/2.20.2/org/apache/camel/Main.html On Thu, Mar 15, 2018 at 3:11 PM, Kris Easter wrote: > > I'm just getting started with us

Run route and then stop context

2018-03-15 Thread Kris Easter
I'm just getting started with using Camel and integrating it for new work into an existing batch based legacy workflow. It seems easiest, for now, to use in the legacy workflow if we can execute the Camel job and then completely exit. This seems to accomplish that: from("timer://runOnce?re

RE: Repeatable HTTP entity by default?

2018-03-15 Thread Siano, Stephan
Hi, If you want to have repeatable streams, enable stream caching (on the route or on the camel context). Best regards Stephan -Original Message- From: Sebastiaan van Erk [mailto:sebs...@sebster.com] Sent: Donnerstag, 15. März 2018 11:57 To: users@camel.apache.org Subject: Repeatable H

Repeatable HTTP entity by default?

2018-03-15 Thread Sebastiaan van Erk
Hi, I am using the HTTP4 component in Camel to send a JSON request to an authenticated REST service (Basic Auth). I don't specify any Content-Encoding. I noticed the following behavior: - If the in exchange body is a byte[], then it turns into an InputStreamEntity which is not repeatable unless

Why does JsonDataFormat with Jackson return a byte array?

2018-03-15 Thread Sebastiaan van Erk
Hi, I used the JSON data format with Jackson to marshal a message to JSON. The resulting message body turns out to be a byte array (byte[]). I was wondering if this is a bug or this is intended behavior. Why doesn't it return a String? Best regards, Sebastiaan