Re: Route to two paths

2016-11-30 Thread spurcell
Tried coding a dynamicRouter, but not understanding how to set the exchange for each different route. Let me step back. I have a list of Objects some good, some bad in my current exchange. So body would be akin to the following: A-GOOD B-GOOD C-GOOD ... F-BAD H-BAD I-BAD ... I want to take the go

Re: Route to two paths

2016-11-30 Thread spurcell
Our team is trying to avoid doing another split, choice aggregate due to performance. In my current route, I can create a "good" list and a "bad" list, so basically the tech lead wants me to take the elements from the good list, send them to a specific route, and take the bad list and send them to

Route to two paths

2016-11-30 Thread spurcell
In a project I am working on, I am parsing a large excel file, and during the routing, I am performing some validation on the data. I have a route that performs the validation, and if validation is good, I want to continue down the same routes that exist. But if the data is invalid, I want to pass

Choice Based On Pojo in Exchange

2016-10-18 Thread spurcell
Hello Team, I have a Pojo in my exchange, and the pojo has a List that may be empty or may have 0..* errors. I would like to create a .choice() based upon the size of the errors list. Is this possible? I see that I can use header and body in the choice, but not sure if the pojo will work. Can some

split, tokenize, unmarshal puts objects into ArrayList

2016-09-13 Thread spurcell
Hello I am pulling in a StringBuffer into a exchange, splitting it on newlines and then converting each line into a dto with the help of BeanIO. But when I look at the exchange it takes each exchange and wraps it into a ArrayList with my one pojo in it, per exchange. I googled this for a bit, an

BeanIO HandleErrorAndAddAsResult

2016-09-07 Thread spurcell
I just wanted to reach out to the Camel team to let them know the work they have done on the Camel-BeanIO code is excellent. This allows parsing of CSV files and errors to be handled and added to the exchange, so no records are lost. The means users can add custom records into the exchange so work

Re: Camel BeanIODataFormat Configure ErrorHandler for BeanIO Reader

2016-09-01 Thread spurcell
Hello Brad, Here is an expected file (simplified down for discussion) "FHDR","1","t","20160" "LFHDR","p","4","2016" "TRNSFRREQ","p","2","A","4","U","a" "LFTRLR","p","1","4" "FTRLR","5","4" When a user sends in a bad file (2 FHDR files) I want to reject the file. "FHDR","1","t","20160" "FHDR","1"

Re: 2.18-SNAPSHOT download assistance

2016-09-01 Thread spurcell
Hello Claus, Thanks for the information, I was able to put that version into my POM and it pulled it down. Would you happen to know when this becomes a release? Just looking for a time-frame. Thanks Scott -- View this message in context: http://camel.465427.n5.nabble.com/2-18-SNAPSHOT-downloa

2.18-SNAPSHOT download assistance

2016-08-31 Thread spurcell
Hello, Our team would like to pre-test the 2.18-SNAPSHOT to see if some functionality will work for us. I use MVN, which means I put a version into my pom and pull it. But it looks like I can only pull releases. Is there a way I can pull the -SNAPSHOT to test? If maven doesn't support it, I guess

Re: Camel BeanIODataFormat Configure ErrorHandler for BeanIO Reader

2016-08-31 Thread spurcell
GM Claus-Ibsen-2, Thanks for the response ... really appreciated that angle. It looks like that functionality was just added to MASTER (trunk I assume). We are running on Camel 2.16.1, and the camel-bean docs show this capability in 2.10, so we were struggling yesterday to understand. As we see

Re: Camel BeanIODataFormat Configure ErrorHandler for BeanIO Reader

2016-08-31 Thread spurcell
Hello Brad, We have a large project in which we are taking in large csv files. Our team wants to create a custom BeanReaderErrorHandler (from: http://camel.apache.org/beanio.html) so we could convert errors to our return errors and build return files for our customers in our newly created applicat

Re: Camel BeanIODataFormat Configure ErrorHandler for BeanIO Reader

2016-08-31 Thread spurcell
I tested some bad files yesterday, and the problems is really when a user l= eaves out a field, then the Runtime gets caught, but we get a ambigious err= or such as : Array out of bounds, no row, no column, etc. That is why we we= re hoping to try grabbing an instance of the ErrorHandler which appe

Camel BeanIODataFormat Configure ErrorHandler for BeanIO Reader

2016-08-30 Thread spurcell
I am working on a camel project in which we use the BeanIODataFormat to unmarshall a CSV file. I want to add a custom Error Handler class (implements BeanReaderErrorHandler) but cannot figure out how this can be accomplished. I have a camel route: from(INBOUND_PROCESSING_ROUTE) .r