Re: Asynchronous processing of routes

2014-01-05 Thread Claus Ibsen
Hi If you do request/reply over JMS in a Camel route then it correlates and waits for the expected reply message. So you can do from X to jms foo ? replyTo = bar to Z Where the jms endpoint is doing request/reply over JMS And you can have multiple routes doing request/reply over JMS as wel

Camel Message Attachment order

2014-01-05 Thread rdehuyss
Hi all, for a project I'm working on where mail attachments are retrieved from a gmail account, the order of the attachments is very important. In Camel, I use a SplitAttachmentsExpression to split all the attachments and process them sequentially. However, I saw that the method createAttachmen

Re: Camel Message Attachment order

2014-01-05 Thread Claus Ibsen
Hi Yeah well spotted, a good idea to use a linked so the order is preserved. Not sure if the attachments api has any hint to indicate ordering. Maybe some unique id of the attachment, many be used as workaround in current Camel version. Though fell free to log a JIRA, and as we love contribution

Re: Asynchronous processing of routes

2014-01-05 Thread kraythe .
The interesting thing is that you don't have to do synchronous request reply to have a route processing flow with a defined order. Consider a route like the following: from("jms:queue:input").to("jms:queue:processA").to("jms:queue:processB").to("jms:queue:results") And the helper routes: from("j

Re: Asynchronous processing of routes

2014-01-05 Thread Claus Ibsen
Just enable asyncConsumer=true søndag den 5. januar 2014 skrev kraythe . : > The interesting thing is that you don't have to do synchronous request > reply to have a route processing flow with a defined order. Consider a > route like the following: > > > from("jms:queue:input").to("jms:queue:proc

Why does ConsumerTemplate.receiveBody receive more than one message at a time from SEDA queue?

2014-01-05 Thread bocamel
When using a consumer template to receive messages from seda queue, a single receiveBody (or receiveBodyNoWait) seems to consume more than one message from the queue. Here is a sample processor: SedaEndpoint queueEp = (SedaEndpoint) exchange.getContext().getEndpoint("seda:test"); ConsumerTemplat

Is there a way to debug in Eclipse Groovy scripts in Camel-Language component?

2014-01-05 Thread bocamel
Using groovy scripts in Camel Language component (uri="language://groovy:resource:classpath:x.groovy") turned out to be a very powerful and flexible way to add business logic into a production Camel route. One can do just about anything in the groovy scripts without having to rebuild the appli

multicast aggregation

2014-01-05 Thread Minh Tran
Hi all I'm currently using multicast in my route with an aggregation strategy and I'm finding that if my multicast only has one route defined in it, then my aggregation strategy is never called. Is this expected behaviour? I would have expected the first call to the aggregation strategy to occu

Re: Is there a way to debug in Eclipse Groovy scripts in Camel-Language component?

2014-01-05 Thread Willem Jiang
Hi, I’m not sure if you can debug the Groovy scripts with CamelContext in Eclipse. But I think you can debug the scripts by using Groovy Eclipse plugin. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) h

Re: Asynchronous processing of routes

2014-01-05 Thread yashgt
In my case, there may be multiple routes running in parallel. But I do not want to have multiple instances of the same route. All I need is a way by which a route will stop midway and wait for a MQ message to arrive as a response. I know from your responses that this is possible if the responder f

Re: Asynchronous processing of routes

2014-01-05 Thread yashgt
Correct me if I am wrong. Camel will correlate the response if the other service sends back the response with the same correlation ID as was sent to it in the Request. If the other service is not using Camel and is solely reading messages directly from MQ, it will not have the knowledge of where to

Re: How can I call a web service with no parameters via a producerTemplate?

2014-01-05 Thread viral.patel69
Please any one suggest solution for my problem. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-call-a-web-service-with-no-parameters-via-a-producerTemplate-tp4806257p5745580.html Sent from the Camel - Users mailing list archive at Nabble.com.

Extract values from header in xpath in Spring DSL

2014-01-05 Thread Satyam Maloo
Consider this xml : Harry Potter J K. Rowling 2005 29.99 Learning XML Erik T. Ray 2003 39.95 I have a set header the header after splitter as /bookstore/book Now after performing a few operations I want to find if the category in the head

Re: multicast aggregation

2014-01-05 Thread Claus Ibsen
What version of Camel do you use? On Mon, Jan 6, 2014 at 12:03 AM, Minh Tran wrote: > Hi all > > I'm currently using multicast in my route with an aggregation strategy and > I'm finding that if my multicast only has one route defined in it, then my > aggregation strategy is never called. Is thi