Re: Camel ExchangeCompletedEvent vs. RoutePolicy.onExchangeDone

2015-10-01 Thread Claus Ibsen
The original exchange will only complete after all the splitter work, so when that is done you know its done. Also each splitted exchange has exchange properties that indiciate if the split is done or not, you could use as alternative to know if the splitter is done. On Thu, Oct 1, 2015 at 8:5

Re: Camel ExchangeCompletedEvent vs. RoutePolicy.onExchangeDone

2015-10-01 Thread dermoritz
Thanks for your quick reply Claus, my problem is that from inside ExchangeCompletedEvent or onExchangeDone i don't know if it is the original exchange or a split exchange. Or: How to know if an exchange is the "original exchange"? (i know how to detect if a splitter is done, but in my case i only

Re: Camel ExchangeCompletedEvent vs. RoutePolicy.onExchangeDone

2015-10-01 Thread Claus Ibsen
The splitted exchanges have a correlation id that points to its parent, so you can essential know which exchange is which as the parent will not have a correlation id. This is set on the splitted exchanges copy.setProperty(Exchange.CORRELATION_ID, id); And yeah a route policy with the onE

Re: Camel ExchangeCompletedEvent vs. RoutePolicy.onExchangeDone

2015-10-01 Thread dermoritz
Thanks, that makes many things much clearer :-) -- View this message in context: http://camel.465427.n5.nabble.com/Camel-ExchangeCompletedEvent-vs-RoutePolicy-onExchangeDone-tp5772140p5772146.html Sent from the Camel - Users mailing list archive at Nabble.com.

Weird exceptions with tomcat camel

2015-10-01 Thread ram kumar
Hi, Added below in pom.xml org.apache.camel camel-core 2.14.1 org.apache.camel camel-servlet 2.14.1 org.apache.camel camel-hdfs 2.14.1

Stream Cache and ZIP-Archives

2015-10-01 Thread Hubertus.Willuhn
Hi, i am new to this forum I have a problem with the stream cache of Camel in conjunction with ZIP files: The starting point is a large XML file (> 400MB). This file is split and processed in a Camel route into smaller units. The result of this first part-route is a list of file objects repr

Cannot Auto Create Component - Netty4

2015-10-01 Thread Roger2015
Hi everyone, I am new to camel & as well as netty4. please feel free correct me if I am wrong. *Objective*: To use netty4 as TCP server & consumer in camel. *What I have done so far:* I have written a java class to instantiate DefaultCamelContext and created a camel-context xml

Re: HTTP Basic Authentication

2015-10-01 Thread zied123456
Hello, I try to send request to a webservice with camel and i dont found how to set httplogin and httppass with POJO i can do this: final String s = my_httpLogin+":"+my_httpPwd; final byte[] authBytes = s.getBytes(StandardCharsets.UTF_8); final String encoded = Base64.getEncoder().encodeToString

Re: Resequencer inout support

2015-10-01 Thread Claus Ibsen
Hi Yeah that is not possible. The resequencer works like the aggregator. The incoming message is accepted by the eip, and then that message continue routing. The this eip is stateful and based on some worker tasks it output new messages when it should, such as for the resequencer when the messag

Re: HTTP Basic Authentication

2015-10-01 Thread Joakim Bjørnstad
Hello, Are you using the http component? http://camel.apache.org/http.html There is a section on authentication there. Example: from("http://examples.com/rest/hello?"; + "authMethod=Basic" + "&authUsername=User" + "&authPassword=Password")

Re: Recommended practices for dynamically creating and removing camel routes and camel contexts

2015-10-01 Thread rwijngaa
talking to myself here ;-) If i replace camelContext.stop() with camelContext.suspend() and camelContext.start() with camelContext.resume() than it works fine. I guess using camelContext.stop() is only used for bringing the whole camel stack down, not to bring it up again later Rino. -- Vie

Re: File component to only process files if modified with noop=true

2015-10-01 Thread hayden74
Thanks for the reply Claus. The *eagerMaxMessagesPerPoll=false* didn't fix the issue unfortunately -- View this message in context: http://camel.465427.n5.nabble.com/File-component-to-only-process-files-if-modified-with-noop-true-tp5772074p5772165.html Sent from the Camel - Users mailing list

WMQ Reply-to queue

2015-10-01 Thread Sashika
I'm connecting to a Websphere MQ endpoint and I have successfully configured the camel Jms component to connect to the queue manager and deliver messages to the intended queue. The route in question is a request-reply scenario and I want the wmq to reply to a queue that I specify. This is configur

Cannot write null body to file - using ftp component

2015-10-01 Thread dfgcamel
All, I have the following code snippet and exception: I have a route that has a jetty enpoint which accessed, starts a process which builds an excel file and stores in in a directory. The next component, file, should pick the file up and pass it to the ftp component, transferring it to a remote

Re: Cannot write null body to file - using ftp component

2015-10-01 Thread Claus Ibsen
Hi See the allowNullBody option http://camel.apache.org/file2 On Fri, Oct 2, 2015 at 3:11 AM, dfgcamel wrote: > All, > > I have the following code snippet and exception: > > I have a route that has a jetty enpoint which accessed, starts a process > which builds an excel file and stores in in a >