Re: Camel Spring Unit Testing with Mocks

2016-10-15 Thread Tomohisa Igarashi
I'm not sure if it's a bug or misuse, but expectedBodyReceived().body().isEqualTo("expected") doesn't work as expected. expectedBodiesReceived("expected") or expectedBodyReceived().constant("expected") works fine.

Re: Camel Spring Unit Testing with Mocks

2016-10-15 Thread Tomohisa Igarashi
Actually interceptSendToEndpoint applies over route collections, but not on a specific route https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/builder/RouteBuilder.java#L259 On 10/15/2016 03:36 PM, Tomohisa Igarashi wrote: I'm not sure if it's a bug or

Re: Avro component example

2016-10-15 Thread owain
Have you a simple example you could share? Sent from my iPhone > On 15 Oct 2016, at 03:11, Vitalii Tymchyshyn [via Camel] > wrote: > > We are using avro quite succesfully. > > Чт, 13 жовт. 2016 07:25 користувач owain <[hidden email]> > пише: > >

Re: SMS Router, a fully functional example with camel-smpp

2016-10-15 Thread engin
hello Daniel, i was trying to build an smpp service with camel, after a few searching, i saw your post. there are multiple smpp message center gateways which i want to apply some filters before routing; - health check - weighting delivery rate for last xx mins - weighting on some kind of

Re: No HTTP response when using onException with BeanValidationException

2016-10-15 Thread Remco Schoen
Hi, I did a little more testing and found that there seems to be a conflict in the headers. When I add this to the XML it works: http://remco.local:8080/custom_webapi/hello/world, CamelServletContextPath=/custom_webapi/hello/world, Connection=keep-alive, Content-Length=3,

Re: file component polling files

2016-10-15 Thread Brad Johnson
I'm not quite sure what you are attempting to do here. You poll every 30 seconds and seem to only want to pick up 1 file but then say you want it to pick up a "large amount of files every poll". Are you trying to pick up just 1 file every 30 seconds or are you trying to read all the files when