http-conf:client not working

2016-10-14 Thread helenlok
Hi, I'm trying to edit the default timeout for my web service to wait for a response where it is set with a Thread.sleep for 5000 ms. I set the timeout to be 1000 ms using http-conf:client and it suppose to be timeout in 1000 ms seconds instead but nothing occurs. Can someone enlighten me as to

Timeout for http-conf:client doesn't seem to work

2016-10-14 Thread helenlok
Hi, I'm trying to edit the default timeout for my web service to wait for a response where it is set with a Thread.sleep for 5000 ms. I set the timeout to be 1000 ms using http-conf:client and it suppose to be timeout in 1000 ms seconds instead but nothing occurs. Can someone enlighten me as to

Camel JSON

2016-10-14 Thread dpravin
Hello All, The requirement is extract data from a Oracle database and one of the field is a Clob field (JSON format). I have set this field as Camel message body and invoking a REST web service. However I get an error with statusCode: 500. Appreciate if you could help me resolve this issue. Thank

Timeout for http-conf:client take no effect

2016-10-14 Thread helenlok
Hi, I'm trying to edit the default timeout for my web service to wait for a response where it is set with a Thread.sleep for 5000 ms. I set the timeout to be 1000 ms using http-conf:client and it suppose to be timeout in 1000 ms seconds instead but nothing occurs. Can someone enlighten me as to

Apache Camel with Play Framework

2016-10-14 Thread vinodkar87
Can we use apache Camel in Play framework? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-with-Play-Framework-tp5788760.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: netty4 producer and default codec

2016-10-14 Thread souciance
I have used the StringEncoder previously so perhaps it will be easier to use ByteArrayEncoder/Decoder..See example here: http://stackoverflow.com/questions/22794326/not-able-to-send-byte-to-server-with-netty On Fri, Oct 14, 2016 at 1:51 AM, Steve973 [via Camel] < ml-node+s465427n5788748...@n5.nabb

Re: file component polling files

2016-10-14 Thread redpower1989
I tried maxMessagesPerPoll = 1 and delay 30 secs and it wasn't picking 1 file every 30 secs and i am wondering if i am setting something wrong on the consumer. By the way i found a way to speed up the file processing and it is the use of threads. Be careful that you need to find a balance for the

Re: Camel JSON

2016-10-14 Thread Tomohisa Igarashi
Hi, What actually is returning status 500? Any external REST service? Can you see that REST service log, specifically the actual payload you sent? And how does your camel route look like? Thanks, Tomo On 10/14/2016 02:06 PM, dpravin wrote: Hello All, The requirement is extract data from a O

Re: CamelCdiRunner loads all routes in each test case (sometimes)

2016-10-14 Thread Dennis Bohnstedt Hansen
Hi Thanks for you quick answer! >> 3) If Weld and Camel versions are the same - where do i look for the error??!? > Not sure I understand the question here :( This refered to the fact, that i had two different behaviours in the two projects - and i could'nt figure out which was the correct behav

Send message to temporary queue

2016-10-14 Thread axdz
Hi all, Follow this link http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html I did it but, it can not send message to temporary queue (which is got from replyTo field). //Set the

Re: Need help in processing comma seperated text file

2016-10-14 Thread raghavender.anth...@gmail.com
Can someone guide me on this? Thank you. -- View this message in context: http://camel.465427.n5.nabble.com/Need-help-in-processing-comma-seperated-text-file-tp5787930p5788783.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel swagger doesn't support array of objects as input type

2016-10-14 Thread Sw1m1k
??? -- View this message in context: http://camel.465427.n5.nabble.com/camel-swagger-doesn-t-support-array-of-objects-as-input-type-tp5788557p5788786.html Sent from the Camel - Users mailing list archive at Nabble.com.

Rest DSL with restlet Component, unable to access API when hosted on remote server

2016-10-14 Thread ganga_camel
Hi,I have a camel route with Rest DSL using the restlet component, configuration as listed belowrestConfiguration().component("restlet").host("{{hostname}}").port("{{port}}") .dataFormatProperty("prettyPrint", "true"); rest("/books").consumes(MediaType.ALL.toString())

RE: Rest DSL with restlet Component, unable to access API when hosted on remote server

2016-10-14 Thread Steve Huston
Sounds like a firewall (or similar) configuration issue. If not, please try posting more about what's not working - error messages, etc. -Steve > -Original Message- > From: ganga_camel [mailto:ganga...@gmail.com] > Sent: Friday, October 14, 2016 9:00 AM > To: users@camel.apache.org > Sub

Re: Rest DSL with restlet Component, unable to access API when hosted on remote server

2016-10-14 Thread Jonas Koperdraat
The first thing that comes to my mind is CORS (cross origin resource sharing) headers, but I'm not sure whether the restlet component adheres to those.. On Fri, Oct 14, 2016, 15:21 Steve Huston wrote: > Sounds like a firewall (or similar) configuration issue. > > If not, please try posting more

RE: Rest DSL with restlet Component, unable to access API when hosted on remote server

2016-10-14 Thread ganga_camel
This is the error message that I get Could not get any response There was an error connecting to http://:8081/bnt?9780226519791,9780415762564. Why this might have happened: The server couldn't send a response: Ensure that the backend is working properly SSL connections are being blocked: Fix this

RE: Rest DSL with restlet Component, unable to access API when hosted on remote server

2016-10-14 Thread Steve Huston
I would start by chasing this as a firewall/routing problem with your network infrastructure people. > -Original Message- > From: ganga_camel [mailto:ganga...@gmail.com] > Sent: Friday, October 14, 2016 9:37 AM > To: users@camel.apache.org > Subject: RE: Rest DSL with restlet Component, u

No HTTP response when using onException with BeanValidationException

2016-10-14 Thread Remco Schoen
Hi, I’m trying to use the REST DSL and do validation on the incoming object with the Bean Validation Component. I have configured my Spring XML like this: org.apache.camel.component.bean.validator.BeanValidationException true 422 Validation error.\n\Message:\n${ex

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Brad Johnson
Have you looked at splitter/tokenizer/streaming for this instead of having route 1 call route 2 which calls route 1? Interesting route setup as I've never used routes in a recursive fashion like that. When using direct the return doesn't happen until the end of the last route in the chain. In thi

Re: Need help in processing comma seperated text file

2016-10-14 Thread Ranx
You can use Bindy though I've had better luck with the mapping in Beanio. Start with that first and then look at using a splitter/tokenizer to process your files or write them out in the new format you require. Just create a mapping file and a sample with a few records in it and run a unit test t

Re: CxfEndpoint soap client usernametoken authentication

2016-10-14 Thread catequil
In step 1 you set 4 props. Where would these props get set in the DSL? or can I somehow set them in the camel-config.xml as part of the cxfendpoint element? This part is a little vague to me. I hope you can help? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Cxf

Re: Camel Spring Unit Testing with Mocks

2016-10-14 Thread catequil
Ok, so it appears that I understand and have a working copy. There are however a few remaining questions. If you feel they are no longer relevant in this thread let me know and I will create a new thread. In the code below I expected it to grab the "myRouteMiddle" route and find the endpoint(dir

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread souciance
Also, use seda for async processing and you can shutoff some camel stuff like jmx, original message etc for increased performance. But for performance you need to do good tests and make a change and repeat those tests and measure. On Fri, Oct 14, 2016 at 5:54 PM, Brad Johnson [via Camel] < ml-node

RE: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Goyal, Arpit
Hi Brad, TOPIC 1: --- "StackOverflowError" - this is what happened with the current Route 2 calling Route 1 for LARGE # OF PAGES. It was not about the data, because the body is not getting appended and is always limited to one page (at least in most cases). JVM/stack-size exploded arou

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Brad Johnson
I didn't think you were appending the data. But realize that when you call direct or direct-vm it is a request/response style of route. So you are calling route 1 which calls route 2 which calls route 1 and are not returning as far as I know. So you are essentially making the equivalent of a rec

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Claus Ibsen
Hi Yes if you loop 1000 times (or alot) then message history will take up memory on the exchange as each step in the routes is recored by default. You can turn this off http://camel.apache.org/message-history.html But as Brad says its not ideal to keep looping in Camel routes as they are not inte

Re: Rest DSL with restlet Component, unable to access API when hosted on remote server

2016-10-14 Thread Claus Ibsen
What Camel version are you using? And have you tried with a newer version? Also its easy to try another rest component such as jetty or netty4-http etc instead of restlet just to see if you can access on that port then. But the other suggestions about firewall and network is a very good start to

Re: Apache Camel with Play Framework

2016-10-14 Thread Claus Ibsen
There is no play component from Apache Camel. Its better to ask the play community if they have any kind of support for Apache Camel. However that said. Camel is just a Java library, so if play can run any Java JARs then you can use Camel also. But you may need to write some code to create CamelC

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Vitalii Tymchyshyn
I think you would get into a recusion this way and end up with stack overflow. You should try http://camel.apache.org/dynamic-router.html Best regards, Vitalii Tymchyshyn 13 жовт. 2016 р. 18:31 "Goyal, Arpit" пише: > Hi, > > We currently are on 2.16.3 version and can't use the loop function (pa

Re: Avro component example

2016-10-14 Thread Vitalii Tymchyshyn
We are using avro quite succesfully. Чт, 13 жовт. 2016 07:25 користувач owain пише: > Hi, > > Has anyone had any success converting a body (pojo) to an avro message via > the avro component. I have generated the avro serialiser for the avro > message bit I am struggling with the documentation a

Re: Camel Spring Unit Testing with Mocks

2016-10-14 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. https://github.com/igarashitm/issues/blob/master/camel/misc/src/test/java/Expected