Re: split by byte chunks

2017-05-31 Thread Claus Ibsen
Hi The reason is that there has not been a need for this .. yet. And we have not heard of good use cases for such a reason. You can build your own split expression to split in byte chunks and use that with the splitter. Just create something that returns an iterator. And your example also seems

Re: FTP route throws exception move file but not move on SFTP site

2017-05-31 Thread Claus Ibsen
You need to configure handled(true) on your onException to tell Camel that the exception is okay and I am handling it. Then the FTP consumer will know this and regard it as success and perform a commit where it can delete the file. On Tue, May 30, 2017 at 9:36 PM, GaryLeeMills wrote: > Hello, > h

Re: split by byte chunks

2017-05-31 Thread souciance
Hello, Although there is no such method you can just write it in a bean and refer to it in your splitter. I have done it when wanting to split based on some uncommon value. The below is taken directly from the documentation. from("direct:body") // here we use a POJO bean mySplitterBean to

Extract xml attribute value and set to request header

2017-05-31 Thread Amiya Sankar Pradhan
Hi All, I am new to apache camel. I need some help on the below issue. We have a requirement to set a header values(value has to be extracted from the body before setting) in soap request based on the soap body element received and then reroute it after that. Presently we are marsalling the soap

How waitting a acknowledge from equipment

2017-05-31 Thread chrisbio
Hi, I'm a beginner to use appache-camel. I need your help to finish my application. My camel application sends commands to an equipment over TCP protocol. After few seconds I receive an ACK from my equipment but on another link (UDP protocol). I think using the pollEnrich function to wait for m

Re: Extract xml attribute value and set to request header

2017-05-31 Thread Claus Ibsen
Hi If the SOAP body is XML payload you can extract the values using xpath or xquery languages. But mind that XPath likely reads in the content into memory - not sure if it has any kind of streaming support. And I think XPath from the JDK reads content into memory. An alternative is to use StAX w

Re: How waitting a acknowledge from equipment

2017-05-31 Thread Claus Ibsen
Hi Maybe build a custom component that does this communication over TCP and waits for that UDP reply. You can look at Netty how to build the network code for such thing. Or Apache Mina 2 but Netty is more popular. Do not use the exisitng Camel mina/netty components as they are not designed for y

AW: Extract xml attribute value and set to request header

2017-05-31 Thread Burkard Stephan
Hi In Java DSL you can do it like this: .setHeader("myHeader").xpath("/xpath/to/needed/element", String.class) XPath in Camel: http://camel.apache.org/xpath.html Set Message-Header example: http://camel.apache.org/constant.html Regards Stephan -Ursprüngliche Nachricht- Von: Amiya Sa

Re: How waitting a acknowledge from equipment

2017-05-31 Thread chrisbio
Ok, I think I will create a specific component. Thank you for your help and quick response. -- View this message in context: http://camel.465427.n5.nabble.com/How-waitting-a-acknowledge-from-equipment-tp5801421p5801429.html Sent from the Camel - Users mailing list archive at Nabble.com.

publish/subscribe with camel-netty4

2017-05-31 Thread Joerg Jansen
Hi everybody, I have to create an interface which should communicate to a server over tcp/ip. After an initial registration request, the server will publish all upcoming events on the same socket (and channel). My first idea was to create two routes, one for the request the other one acting as

Need help on Camel-Ignite Coomponent

2017-05-31 Thread solomon
Hi, I am trying to read the data from Camel-MQTT and PUT the message into Camel-Ignite' cache within camel context. I am getting error while doing so... searched online for examples for Camel-Ignite component, but I didn't get any examples. Camel version I'm using is 2.17.2 My code is like thi

Re: FTP route throws exception move file but not move on SFTP site

2017-05-31 Thread GaryLeeMills
If I had a nickel for each time... :) thank you so much Claus! That was it. That did the trick. I appreciate your time. Love Camel! -- View this message in context: http://camel.465427.n5.nabble.com/FTP-route-throws-exception-move-file-but-not-move-on-SFTP-site-tp5801393p5801435.html Sent

Re: Need help on Camel-Ignite Coomponent

2017-05-31 Thread Andrea Cosentino
You have to use only one URI in the Ignite .to and define the headers you'll need in a processor between from and to. from("mqtt:bar?subscribeTopicName=test&host=tcp://localhost:1883").process(new Processor() { @Override public void process(Exchange exchange) throws Exception { e

JettyClient failed cause by: HttpConnectionOverHTTP

2017-05-31 Thread dhinu2489
Hi, I am new to Camel and using camel jetty component to do a http connection to an another application (java web app). But I received an error like below: org.apache.camel.CamelExchangeException: JettyClient failed cause by: HttpConnectionOverHTTP@45dc56cd(x:/xxx.xxx.x.xx:x <-> x:xxx.xxx.xxx

Re: JettyClient failed cause by: HttpConnectionOverHTTP

2017-05-31 Thread Owain McGuire
Hi, My understanding is that you should not be using camel jetty as a producer since it is deprecated. http://camel.apache.org/jetty.html I would suggest using http4 component (http://camel.apache.org/http4 ) or try rest dsl f

Re: Spring Boot startup not working in JUnit

2017-05-31 Thread dancerjohn
I updated to Spring Boot 1.5.3 and used SpringBootTest and that works. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Spring-Boot-startup-not-working-in-JUnit-tp5801391p5801502.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel Smb Protocol is not supporting SMBv2 & SMBv3..

2017-05-31 Thread sai
Hello, I have a camel route with smb:// consumer that picks the files via remote server. This worked really great so far. But recently my organization turned off SMBv1 and upgraded to SMBv2 or v3. Now i'm not able to access the share with smb:// and i'm getting following exception:: Caused

Re: Need help on Camel-Ignite Coomponent

2017-05-31 Thread solomon
Thanks a lot Andrea Cosentino Regards -- View this message in context: http://camel.465427.n5.nabble.com/Need-help-on-Camel-Ignite-Coomponent-tp5801433p5801607.html Sent from the Camel - Users mailing list archive at Nabble.com.

Why is my apache showing timeout while uploading files.

2017-05-31 Thread akmalyousuf
When i am uploading file to the server ( www.office.com/setup Office Setup Help ) i am getting an error. Connection Timeout. Can you please help. -- View this message in context: http://camel.465427.n5.nabble.com/Why-is-my-apache-showing-timeout-while-uploadi