Reusable route definitions?

2014-09-15 Thread toomanyedwards
Hey all, I have several "direct:" routes that I'd like to be able to reuse across multiple standalone camel projects. I am currently using Java DSL to define my routes. Can anyone point me to any existing patterns for creating reusable route definitions? The solution I've come up with is creat

502 Timeout

2014-09-15 Thread berdoni
Hi, I have a simple proxy route deployed on ServiceMix: from("jetty:http://{{smx.host}}:{{smx.rest-proxy-port}}/{{smx.context}}?matchOnUriPrefix=true&enableMultipartFilter=false";) .noStreamCaching() .to("jetty:http://{{target-server-address}}:{{target-ws-port}}/?bridgeEndpoint=true&throwExceptio

DataAccessResourceFailureException was not handled by onException DSL

2014-09-15 Thread shrivallabh
I have a postgres connection and I have given wrong credentials, I want to catch connection exception in camel context. It never catch the exception. see camel context http://camel.apache.org/schema/spring"; errorHandlerRef="deadLetterErrorHandler" > or

Custom message handling and routing

2014-09-15 Thread vikrant
I have a custom message which is a combination of - Part A – java map message Part B – xml This routing is based on the details from both the parts and to the end point the both parts should be delivered a single message. Can I use content based routing xpath for the xml message and bean for map m

@Consumed

2014-09-15 Thread Bejjanki, Yuvanaga
Hi, How we can access a custom value(from exchange) in @consumed method of an entity This custom value would be determined based on some logic in a processor, so how does @consumed method can get this value and set to the entity property. Thanks, Yuva This message and any attachments are inten

Re: Setting CXF TLSClientParameters programmatically

2014-09-15 Thread jjathman
I realize this is a very old post, but I don't really see a concrete answer to the questions from the OP. From what I can tell using a wildcard HTTP conduit configuration does not work correctly when programmatically creating a CxfEndpoint. Using that would be ideal, but even if that isn't possible

Re: ProducerTemplate null when used to construct bean in new JndiContext in a unit test

2014-09-15 Thread Jason Holmberg
I figured it out. My answer can be found here: http://stackoverflow.com/questions/25851033/producertemplate-null-when-used-to-construct-bean-in-new-jndicontext-in-a-unit-t

ProducerTemplate null when used to construct bean in new JndiContext in a unit test

2014-09-15 Thread Jason Holmberg
I am trying to unit test a route that uses bean to dynamically construct an sftp endpoint. This works when I run my route in a normal context, as it seems a template is already in the registry and can be correctly injected. My problem is when trying to construct the unit test I seem to be runnin

Re: Camel 2.14-SNAPSHOT - Is interceptFrom() broken for the Rest dsl?

2014-09-15 Thread panzerhans
Here is a snippet of the code: @Component @DependsOn("camelConfig") public class IncomingRestCalls extends RouteBuilder { interceptFrom().id("Logging interceptor").bean(NISAccessLog.class); restConfiguration()..; rest(NISConfig.API_VERSION_1 + "/holdings").description("Holdin

Re: Camel 2.14-SNAPSHOT - Is interceptFrom() broken for the Rest dsl?

2014-09-15 Thread Claus Ibsen
Hi Are you use the rest dsl with embedded route or just a single short-hand to? There could be a situation where the intercept from is applied to early, and the rest-dsl routes gets added as route models after that logic. Though I would have to check the source code to sure. But sounds like we c

Camel 2.14-SNAPSHOT - Is interceptFrom() broken for the Rest dsl?

2014-09-15 Thread panzerhans
I am struggelig to get interceptFrom() working for the rest-DSL. My project only has one Rest DSL route. If I add interceptFrom().stop() in the beginning of a my RouteDefinition file, no stop of that route occurs. In addition, if I add the interceptFrom().stop() after my rest dsl route is defined

Re: Camel 2.13.1 Orignal Body from Splitter

2014-09-15 Thread Bilgin Ibryam
Before the splitter, put the original body into a property, then you can access it from the processor. HTH, On 10 September 2014 18:10, sandp wrote: > Hi, > Is it possible to access the original body along with the split body in a > processor? > > *E.g. Parent object has a List objects,* > A

Re: Over-riding JSON deserializers/serializers in Camel w/o using annotations

2014-09-15 Thread Paul McCulloch
I've achieved this for Jackson as follows. I've no idea if this is a good solution, but it works!: 1) Create a Spring Factory Bean for creating JacksonDataFormat instances. i.e. 2) In my factory's getObject() method so something like: ObjectMapper mapper = new ObjectMapper(); //There are a bunch