Re: Simple enrich of a pojo

2016-02-22 Thread Alberto Brosich
ovy, mvel, etc for such an use-case. > > > > > On Mon, Feb 22, 2016 at 4:05 PM, Alberto Brosich > wrote: > > > > Hello, > > > > I have to enrich a pojo using the value of an header. > > I'm using a Processor but I'm wondering if th

Simple enrich of a pojo

2016-02-22 Thread Alberto Brosich
Hello, I have to enrich a pojo using the value of an header. I'm using a Processor but I'm wondering if there is a simpler method. using .enrich.simple("${body.setAttribute(${header.HeaderName})}") obviously doesn't work because the setter returns null, not the pojo. Regards Alberto

Handling of parsing errors in camel bindy

2016-02-02 Thread Alberto Brosich
Hi, is there a way to intercept parsing exception in camel bindy? I have to continue the processing of the remaining fields/records and, for example, put an empty value in the field where the value is not correctly parsed. Regards Alberto

FTP consumer sometimes throws NullPointerException

2014-05-20 Thread Alberto Brosich
Hi, I have an exception from a ftp consumer only for few files. Camel version is 2.13.1. - It happens on few files (2 or 3). Remote directory contains many files (many thousand) - These few files have the same ownership and permissions of the others and are not empty - I stopped the application

Cannot poll windows absolute path using FTP component

2013-08-27 Thread Alberto Brosich
Hi, I'm trying to poll an absolute path on a windows machine, with sftp component (Windows machine has openssh server installed). Using scp from command line works all fine, with unix separators (c:/dir1/dir2/filename). Using ftp component I got always the following error: "Cannot change dire

Re: Consume the same file

2013-03-14 Thread Alberto Brosich
On Wed, 2013-03-13 at 17:31 +0100, Claus Ibsen wrote: > On Wed, Mar 13, 2013 at 3:54 PM, Alberto Brosich > wrote: > > > > Hi, > > > > I have to consume with the FTP component always the same file but only when > > its size changes. > > I read this in the

Consume the same file

2013-03-13 Thread Alberto Brosich
Hi, I have to consume with the FTP component always the same file but only when its size changes. I read this in the documentation: Camel 2.11: To use a custom idempotent key. By default the absolute path of the file is used. You can use the File Language, for example to use the file name a

Accessing activemq queue operations from a processor

2012-08-13 Thread Alberto Brosich
Hi, I have the following problem: I have a queue that receive different "types" of messages. For some of these types I need to be sure that only one message of that type is in the queue. I have two possible solutions. 1) put on the queue only if browseMessages(String selector) or browseAsTa