Re: How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-20 Thread Claus Ibsen
Hi Oh to not block on the jms consumer you need to configure it to asyncConsumer=true. Then when the error handler does schedule a async redelivery, the consumer thread is not blocked, and can work on the next message. But again long lasting transactions and redeliveries is likely better if the b

Re: How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-20 Thread Claus Ibsen
Hi You should favor using the brokers redelivery settings instead of Camel. Then you dont have blocked threads, or long running transactions. Using Camel is better for short term redeliveries. OracleAQ from such a big player must surely have some way of configuring redelivery. Apache ActiveMQ do

Intercept (before and after) routes invocations

2015-03-20 Thread Janario Oliveira
Hi guys, I'm trying to enable a custom cdi scope on all process routes. So I'd like to run some code before and after all routes execution. It could be before/after the route execution or before a bean/process invocation: .bean(myCustomScope, "startCustom") .bean(myBean, "myMethod") .bean(myCus

Re: camel elasticsearch component

2015-03-20 Thread Gregor Zurowski
Hi Akram, The search operation has been just added to the Elasticsearch component with CAMEL-8506 (https://issues.apache.org/jira/browse/CAMEL-8506). Take a look at the corresponding unit test (testSearch) to see how to use it: https://github.com/apache/camel/blob/master/components/camel-elastic

Re: hdfs2 component with kinit

2015-03-20 Thread aidatechinc
Did you manage to solve this issue? Having similar issue... -- View this message in context: http://camel.465427.n5.nabble.com/hdfs2-component-with-kinit-tp5761923p5764490.html Sent from the Camel - Users mailing list archive at Nabble.com.

How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-20 Thread Frank Ertl
Hi guys, we have the following scenario: Orders are stored to an Oracle AQ queue from where we read the messages by a JmsComponent and deliver the content to a webservice. If anything goes wrong we should redeliver the messages with exponential backoff starting with a delay of 15 minutes. er

Camel transacted route from JMS to JDBC

2015-03-20 Thread Cecilio Alvarez
Hello I tried to create a transacted route, but after 7 retries the message is discarded and if the process is killed the message is lost. Setting the transacted parameter, the vm connector is repeatedly starting/stopping. Why happens this?

camel elasticsearch component

2015-03-20 Thread Akram
I am new to camel, using elasticsearch component. I wants to write my own query based on fields in elasticsearch and fetch the data. Is there any way to do this using camel elasticsearch component. I checked documentation but didnt find anything related to this. -- View this message in context:

Re: Http Component Post Parameters

2015-03-20 Thread pilgrim08
Thank you Willem. I had added the "application/x-www-form-urlencoded" content-type because I saw it in another thread. Maybe that wasn't a good idea. I did try your solution of setting the parameters in the body but it still doesn't send them as POST parameters. In this case it sends the parame

Re: Http Component Post Parameters

2015-03-20 Thread pilgrim08
Thank you Willem. I did try this solution but still it still doesn't work. In this case it sends the parameters in the request body but they aren't POST parameters. The web service I am calling is unable to access the parameters. When I make this call with a Straight java.net.URLConnennection,

CamelBlueprintTestSupport inconsistent timeouts

2015-03-20 Thread jasm1th
Hello, I've got around 100 JUnit tests in my application over around 15 Karaf bundles. Only a small selection of those tests extend the CamelBlueprintTestSupport class. The tests are just designed to send a new message along a route, sets some headers and call a bean or another route. The returned

Re: Bean invocation .class vs new

2015-03-20 Thread yuncil
I have to ask further questions, because the caching process is still unclear. We use camel to realize a servlet request-response scenario. It is multithreaded, therefore we are a little worried about following situation: There are several incoming requests at the same time and all of them use th