Re: route <-> XML <-> route

2015-05-25 Thread Claus Ibsen
On Mon, May 25, 2015 at 3:01 PM, Tim Dudgeon wrote: > Hi, > > I'm wanting some guidance on how to generate a route definition using the > API in a way that allows it to be converted to XML and then executed. I've > got the basics sorted, but struggling on how to handle processors and beans. > For

Re: Content Based Router : Java DSL is not working

2015-05-25 Thread Claus Ibsen
Hi > .when(checckFilePattern(header("CamelFileAbsolutePath").toString())). This is wrong. This code is only invoked once to setup the routes. Use a bean as predicate instead of header for dynamic, and just write it as plain java code public static boolean checkPattern(@Header("CamelFileAbsolute

Re: JSON Path Predicate

2015-05-25 Thread Claus Ibsen
Hi The first examples in the content based router is predicates. eg the ones that check if a price is below or higher some values etc. On Fri, May 22, 2015 at 10:19 PM, Jeremy Deane wrote: > Could some please post an example of using JSONPath against the Camel Payload > to create a Predicate. T

Re: Synchronous one time use of endpoint

2015-05-25 Thread Claus Ibsen
Hi To pickup only one file then use the fileName or filter options to select which file. On Fri, May 22, 2015 at 7:38 PM, Justin Rosenberg wrote: > I would like to leverage the endpoint abstraction Camel provides, but I > don't necessarily need a route. My use case is to simply read a file f

Re: How can i use CDI with the Camel Context

2015-05-25 Thread Jason Holmberg
You should really review some of the available example. This one: camel-example-spring might help. Also, a review of Spring basics sounds like it would be helpful. -- View this message in context: http://camel.4654

JSON Path Predicate

2015-05-25 Thread Jeremy Deane
Could some please post an example of using JSONPath against the Camel Payload to create a Predicate. The example here only used Expressions not a Predicate. http://camel.apache.org/jsonpath.html -- View this message in context: http://camel.465427.n5.nabble.com/JSON-Path-Predicate-tp5767433.

Re: Web Srevice exposed over https not working

2015-05-25 Thread gargankur007
Hi William What more information will you need? What are the reasons that client may close connection? -- View this message in context: http://camel.465427.n5.nabble.com/Web-Srevice-exposed-over-https-not-working-tp5767156p5767441.html Sent from the Camel - Users mailing list archive at Nabble

Re: Content Based Router : Java DSL is not working

2015-05-25 Thread yogu13
Hi, I would suggest to split the route in smaller route using direct and then check from(FILE_WATCHER_DSL) .log(LoggingLevel.INFO, FileWatchDSLUtil.getFileLogPattern()) .choice() .when(checckFilePattern(header("CamelFileAbsolutePath").t

What is the best way to implement "RunLevel" equivalent functionality with camel.

2015-05-25 Thread Zoltan Farkas
I want to be able in implement similar functionality like unix run levels .. level 1 - start level 1 set of routes level 2 - run all from level 1 + level 2 specific routes. ... I want to be able to go from level 1 -> level 2 and vice versa. (starting/stopping the necessary routes..) What would

route <-> XML <-> route

2015-05-25 Thread Tim Dudgeon
Hi, I'm wanting some guidance on how to generate a route definition using the API in a way that allows it to be converted to XML and then executed. I've got the basics sorted, but struggling on how to handle processors and beans. For instance, if I generate a route like this: // generate the

Re: How to suppress exceptions from @Jsonpath expressions?

2015-05-25 Thread Preben.Asmussen
Hi Currently it's seems not possible to have optional jsonpath parameters on a bean since the component will throw an PathNotFoundException on missing path's. I think jsonpath should return null on unknown path's instead of throwing PathNotFoundException. If i recall right thats also the behaviour

Content Based Router : Java DSL is not working

2015-05-25 Thread Kondalarv
I have choice with many options, and using java operation for conditions. The route is going to otherwise() option always and checckFilePattern() method is not executing. from(FILE_WATCHER_DSL) .log(LoggingLevel.INFO, FileWatchDSLUtil.getFileLogPattern())