Re: How can I include common behavior in several routes?

2018-05-10 Thread Owain McGuire
Steve, My rudimentary reading of your question would suggest to me that what you are talking about is an common InOut route. So define a direct:commonRoute and then use it in the applicable routes. Or if it is more sophisticated, look at using a RouteBuilder class. HTH. O. > aware", how

Re: Empty/null response from netty4-http template producer

2018-03-27 Thread Owain McGuire
Alex, Just had a quick look. The post in the Rest DSL route goes to direct:echo-route but your echo-route does not have a "from direct:echo-route". My understanding is that the REST DSL generates a route that will have already consumed the POST and then once it has sent the exchange to the

Re: State of the current Camel wiki documentation

2018-01-18 Thread Owain McGuire
Paul, One of the hardest aspects of using Camel is the ability to read the documentation. We generally use “pair-reading” to interpret unfamiliar areas - reviewing the examples, tests and source code are more productive. I generally agree that the documentation should be part of the code

Re: Design: State Machine implementation in Apache Camel

2018-01-10 Thread Owain McGuire
At the very > least, I would rely on Camel to perform the routing and processing, and if > you need a state machine, use something like StatefulJ and don't clutter > your camel orchestration with it. > > Owain, are you referring to the Guava EventBus, or Google Cloud Pub/Sub? >

Re: Design: State Machine implementation in Apache Camel

2018-01-10 Thread Owain McGuire
Imran, Have you thought of a publish/subscribe model where each topic triggers multiple subscriptions. Perhaps have a look at Google pub/sub component. HTH. O. > On 10 Jan 2018, at 18:23, Imran Raza Khan wrote: > > Hi Steve, > > Thanks for detail reply. > > - I

Re: How to handle many-ftp endpoints

2017-08-09 Thread Owain McGuire
We have accomplished this with the Routebuilder. http://camel.apache.org/routebuilder.html Had all the ftp endpoints, cron/quartz details stored in a DB and generated the routes dynamically. > On 9 Aug 2017, at 09:45, Christian Stark

Re: Camel HTTPS - timing out

2017-06-29 Thread Owain McGuire
From the doc: http://camel.apache.org/http4.html Setting the Exchange.HTTP_URI overrides the URI on the endpoint. "The URI to call. The value of this option will override the existing URI that's set directly on the endpoint. It's not the same as the Camel

Re: Mocks receive no messages in Camel-SpringBoot test

2017-06-07 Thread Owain McGuire
Stephan, You appear not to be mocking the activemq:queue:output endpoint before you get the mock endpoint i the test. If you temporarily change the route uri to mock:activemq:queue:output then the test works. I am not sure how you would do it using injection. I use advicewith on the route

Re: How to Extract json key, value from MQTT payload

2017-06-06 Thread Owain McGuire
Try unmarshal from json to pojo using http://camel.apache.org/json.html > On 6 Jun 2017, at 13:20, solomon wrote: > > Hi, > > I have created a camel route of mqtt -> jdbc which pushes the data in json > format into MQTT topic,

Re: JettyClient failed cause by: HttpConnectionOverHTTP

2017-05-31 Thread Owain McGuire
Hi, My understanding is that you should not be using camel jetty as a producer since it is deprecated. http://camel.apache.org/jetty.html I would suggest using http4 component (http://camel.apache.org/http4 ) or try rest dsl

org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to validate xml

2016-09-16 Thread Owain McGuire
Hi, I have a simple wire-tap root and I am unit testing it using CamelBlueprintTestSupport. I can run the test and it passes but in the log I get: 2016-09-15 11:10:40,542 [int Extender: 2] ERROR BlueprintContainerImpl \- Unable to start blueprint container for bundle

Unable to configure RedisTemplate with Blueprint XML

2016-06-14 Thread Owain McGuire
I have set up a simple route to isolate the string serialization problem that I am experiencing, like others non XML version here: http://stackoverflow.com/questions/32245916/redis- serialization-prefixed-with-extra-string I have a route set up with some beans but seem to be going round

Re: Warning out on naming Blueprint property-placeholder persistent-id="stuff-test"

2016-06-01 Thread Owain McGuire
ira/browse/KARAF-3007 > > On Tue, 31 May 2016 21:00:34 +0300, Owain McGuire owain@integration.technology wrote: > > ![](https://link.nylas.com/open/ez36v71u7uh7qiundny4ougdd/local- dab1ed0a-250c) Finally found this: https://access.redhat.com/solutions/1535463 If

It IS possible to import routeContext in OSGi Blueprint

2016-05-31 Thread Owain McGuire
![](https://link.nylas.com/open/ez36v71u7uh7qiundny4ougdd/local-2413efdb-c652) Just come across this article https://access.redhat.com/solutions/259293 and it something not easily found in the community. http://camel.465427.n5.nabble.com/camel-blueprint-unit-tests-td5738925.html and

Warning out on naming Blueprint property-placeholder persistent-id="stuff-test"

2016-05-31 Thread Owain McGuire
![](https://link.nylas.com/open/ez36v71u7uh7qiundny4ougdd/local-dab1ed0a-250c) Finally found this: https://access.redhat.com/solutions/1535463 If you have a dash "-" in the persistent-id then if you override the properties file in $FUSE_HOME/etc with the name pid.cfg then it won't pick