Re: java-dsl.html error

2015-02-17 Thread Claus Ibsen
Hi Thanks I have removed that section On Tue, Feb 17, 2015 at 8:55 AM, James Green wrote: > At the bottom it talks about intercept() but doesn't use it. Confusing at > least! > > And the link to InterceptorProcessor is a 404. > > James -- Claus Ibsen - Red Hat, Inc. Email: ci

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Willem Jiang
Hi, Does your QA box have the internet access? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On February 6, 2015 at 6:35:47 PM, Ayache Khettar (ayache.khet...@go

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Grzegorz Grzybek
Hi Ayache, what version of Camel do you use? There was a fix to camel-blueprint tests a while ago (see https://issues.apache.org/jira/browse/CAMEL-7469) regards Grzegorz Grzybek 2015-02-17 9:39 GMT+01:00 Willem Jiang : > Hi, > > Does your QA box have the internet access? > > -- > Willem Jiang >

Re: isMockEndpointsAndSkip documentation unclear

2015-02-17 Thread Chris Melikian
Cám ơn Anh Minh! That was exactly my problem. Here's the solution that worked for me (after lots of trying!):- @Override public String isMockEndpointsAndSkip() { return "direct://(?!closeOpenOrders).*"; } which translates to "mock and skip original endpoin

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Ayache Khettar
Hi Willem I am afraid not and never will I was told :) Ayache On 17 February 2015 at 08:39, Willem Jiang wrote: > Hi, > > Does your QA box have the internet access? > > -- > Willem Jiang > > Red Hat, Inc. > Web: http://www.redhat.com > Blog: http://willemjiang.blogspot.com (English) > http://jn

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Ayache Khettar
Hi Grzegorz I am using Camel version 2.13.2, which I think it should have the fixe you pointed below. Thanks Ayache On 17 February 2015 at 08:58, Grzegorz Grzybek wrote: > Hi Ayache, what version of Camel do you use? > > There was a fix to camel-blueprint tests a while ago (see > https://issu

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Grzegorz Grzybek
Ayache - do you try to run one of Camel's own tests, or your own? regards Grzegorz 2015-02-17 11:35 GMT+01:00 Ayache Khettar : > Hi Grzegorz > > I am using Camel version 2.13.2, which I think it should have the fixe you > pointed below. > > Thanks > > Ayache > > On 17 February 2015 at 08:58, Grz

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Ayache Khettar
My own Unit Test Ayache On 17 February 2015 at 10:42, Grzegorz Grzybek wrote: > Ayache - do you try to run one of Camel's own tests, or your own? > > regards > Grzegorz > > 2015-02-17 11:35 GMT+01:00 Ayache Khettar : > > > Hi Grzegorz > > > > I am using Camel version 2.13.2, which I think it sho

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Grzegorz Grzybek
Ayache, could you share it? via github maybe? ~Grzegorz 2015-02-17 11:54 GMT+01:00 Ayache Khettar : > My own Unit Test > > Ayache > On 17 February 2015 at 10:42, Grzegorz Grzybek > wrote: > > > Ayache - do you try to run one of Camel's own tests, or your own? > > > > regards > > Grzegorz > > >

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Ayache Khettar
Here is sample project: https://github.com/akhettar/message-connector. There are other component failings too, but randomly and not frequently. But it's becoming really annoying to see these random failures happening 4 to 6 times a day (depending on how often we check in). Rarely fails on my dev ma

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Ayache Khettar
I've added the https://github.com/akhettar/message-connector/blob/master/test/MHSTestFixture.java incase you want to see the parent test class. On 17 February 2015 at 11:15, Ayache Khettar wrote: > Here is sample project: https://github.com/akhettar/message-connector. > There are other component

Javascript DSL, "response" is not defined

2015-02-17 Thread fabrizio.spataro
Hello everyone. I am using camel 2.14.2-SNAPSHOT and i am trying to access object *response* into my code: Can you help me? Spring DSL: var a = request; // OK var b = request.body; // OK var c = response; //FAIL Stacktra

Re: isMockEndpointsAndSkip documentation unclear

2015-02-17 Thread Chris Melikian
Argh. Should be "mock and skip original endpoints for all direct endpoints whose id does NOT start with closeOpenOrders". -- View this message in context: http://camel.465427.n5.nabble.com/isMockEndpointsAndSkip-documentation-unclear-tp5762798p5762841.html Sent from the Camel - Users mailing li

Re: isMockEndpointsAndSkip documentation unclear

2015-02-17 Thread Minh Tran
lol Your welcome! Personally I find that with mock and skip, you want to do this sparingly instead of skipping everything except the first endpoint as you’ve described. Instead I prefer to target certain endpoints so my regex looks something like (direct:abc.*|direct:def.*|jms:blah.*|http4:foo

Re: Javascript DSL, "response" is not defined

2015-02-17 Thread Claus Ibsen
Hi I guess its not valid to use, but I would assume the last evaluated code is the response. So just do whatever you want as response in the end. On Tue, Feb 17, 2015 at 12:24 PM, fabrizio.spataro wrote: > Hello everyone. > > I am using camel 2.14.2-SNAPSHOT and i am trying to access object *re

Re: Javascript DSL, "response" is not defined

2015-02-17 Thread fabrizio.spataro
So, I am using the code according to this page ( http://camel.apache.org/javascript.html ) -- View this message in context: http://camel.465427.n5.nabble.com/Javascript-DSL-response-is-not-defined-tp5762839p5762844.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CamelBlueprintTest randomly failing tests

2015-02-17 Thread Henryk Konsek
Hi, Check out this [1] solution. It worked for one of ours customer. He suffered from the intermittent failing CamelBlueprintTests as well. Cheers. [1] https://access.redhat.com/solutions/640943 On Tue, Feb 17, 2015 at 12:30 PM, Ayache Khettar wrote: > I've added the > https://github.com/akhet

RE: Javascript DSL, "response" is not defined

2015-02-17 Thread Sven Nold
Hi, the attributes out/response are only available if exchange has an Out. if (exchange.hasOut()) { Message out = exchange.getOut(); context.setAttribute("out", out , scope); context.setAttribute("response", out, scope); } (ScriptBuilder.java)

camel-netty4-http access to response

2015-02-17 Thread Mark Mindenhall
I’m using the camel-netty4-http (latest 2.14.2-SNAPSHOT) component to create an endpoint that receives an HTTP POST from a device, translates the message from binary to JSON, then sends it along to a kafka topic for further processing. When there are errors in validating or translating the inco

Re: camel-netty4-http access to response

2015-02-17 Thread Mark Mindenhall
Figured it out; just replying to my own message in case someone else runs into the same problem (or in case I forget later ;) ). I dug around in the code, and discovered that the HTTP response code can be set via the CamelHttpResponseCode message header (defined as a constant: Exchange.HTTP_RE

dynamicRouter and redelivery

2015-02-17 Thread Minh Tran
Hi I seem to be having an issue with redelivery for an endpoint being called within a dynamic router in Camel 2.14.1. My endpoint is never called more than once. Here is my route from("direct:start").onException(IOException.class).maximumRedeliveries(-1).end() .dynamicRouter().method(Router.c

Camel Spring Boot Joda DateTime serialization support with Jackson JSON

2015-02-17 Thread benjf
How do I configure Jackson JSON marshal/unmarshal to have global support for the Joda DateTime type? Spring Boot now supports this: https://spring.io/blog/2014/12/02/latest-jackson-integration-improvements-in-spring If I include this: https://github.com/FasterXML/jackson-datatype-joda com.fa

Re: camel-netty4-http access to response

2015-02-17 Thread Claus Ibsen
Hi Thanks for sharing your solution. Its a common header in Camel that all the http components (that has a consumer to act as the HTTP server) uses for allowing to control the HTTP status code. We love contributions and ppl is certainly welcome to help any way, also with docs. http://camel.apach

Re: Camel Spring Boot Joda DateTime serialization support with Jackson JSON

2015-02-17 Thread Claus Ibsen
Hi Yes CAMEL-8176 in next release makes this easier. Just set the module on the json data format. On Wed, Feb 18, 2015 at 1:14 AM, benjf wrote: > How do I configure Jackson JSON marshal/unmarshal to have global support for > the Joda DateTime type? > > Spring Boot now supports this: > https://sp

Re: Javascript DSL, "response" is not defined

2015-02-17 Thread Claus Ibsen
Hi I am updating that documentation page. On Tue, Feb 17, 2015 at 4:53 PM, fabrizio.spataro wrote: > So, > > I am using the code according to this page ( > http://camel.apache.org/javascript.html ) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Javascript-DSL