Questions tagged [bindy]

Bindy is a component for Apache-Camel for parsing/binding non-structured data (e.g. CSV records) to/from Java Beans.

Bindy is a component for for parsing/binding non-structured data to/from Java Beans.

It has a support for:

  • CSV records
  • Fixed-length records,
  • FIX messages,
  • or almost any other non-structured data

Bindy evaluates the annotations in the used Java Beans to determine the record structure and to perform the parsing/binding between the data records and the Beans.

99 questions
0
votes
1 answer

Is there a way to skip an invalid record when unmarshalling csv records with apache camel bindy

I have the following route from("file:" + baseInputPath + "/exchangerates" + "?noop=true") .idempotentConsumer(header(CAMEL_FILE_NAME), …
Christian
  • 739
  • 6
  • 10
0
votes
1 answer

Spring Boot auto-configuration not working for Apache Camel Bindy

As described here, and in the official documentation itself: the unwrapSingleInstance property allows us to establish "when unmarshalling should a single instance be unwrapped and returned instead of wrapped in a java.util.List". However, the…
lcnicolau
  • 3,252
  • 4
  • 36
  • 53
0
votes
0 answers

Camel Bindy FixedLengthRecord paddingChar and delimiter not working in DataField

Camel Bindy FixedLengthRecord paddingChar and delimiter not working in DataField. Example: @DataField(pos = 1, length = 5, paddingChar = '0', delimiter = "|") For fixed length, when I use paddingChar separately its working and delimiter separately…
Aruna
  • 1
  • 1
0
votes
0 answers

Apache Camel: How to remove header and footer from a fixed length file before splitting the file for processing?

I have a fixed length file in the following format: Header Line 1 Line 2 . . Line n Footer The requirement is, I need to read this file and process only its body, ignoring the header and footer. And since these files are going to be huge, I am…
Dee
  • 1
  • 1
0
votes
0 answers

How to replace values of a CSV field using Camel?

I have the following requirements: For each record in a CSV file, read the value contained in three of its fields named startValue, endValue and change. Calculate the change as (endValue-startValue)/startValue Compare the calculated change to the…
James
  • 2,876
  • 18
  • 72
  • 116
0
votes
2 answers

How to tell Apache Camel BindyCsvDataFormat to ignore blank lines?

I have a CSV file that ends with a few empty lines. I would like to unmarshal each non-empty line into a Java object using BindyCsvDataFormat as follows: //within my RouteBuilder class from("{{route.from}}") .unmarshal(new…
James
  • 2,876
  • 18
  • 72
  • 116
0
votes
1 answer

Problems migrating dataformats (bindy, etc) in Springboot with Apache Camel

I have this project in Springboot with Apache Camel and since we changed the version (we updated Spring to 2.7.2 and Camel to 3.16.0, which was previously in 2.x) in Maven, now I have to "migrate" these dataformats that are in the…
0
votes
1 answer

Camel bindy separator configurable through properties

I use Apache Camel in a Spring Boot Java project. I have to parse a csv and split the lines with a separator. I use camel bindy to parse the csv and read it as a pojo bean class. Here is how I configure the camel bindy @CsvRecord( separator = ","…
Fjordo
  • 768
  • 3
  • 18
  • 40
0
votes
1 answer

Apache Camel Bindy Unmarshall vs Marshall is different

I'm working with a piece of fixed length data that is in a weird format. Essentially its 10 characters, but the first one indicates the sign. I was able to unmarshal the data as an integer using the below configuration, but when marshaling back I…
tkblackbelt
  • 391
  • 2
  • 10
0
votes
1 answer

Bindy skipping empty csv files

I built a camel route that unmarshals a csv file using camel bindy and writes the contents to a database. This works perfectly apart from when the file is empty, which by the looks of it will happen a lot. The file does contain csv headers, but no…
lbma
  • 132
  • 8
0
votes
1 answer

Camel Bindy Streaming Payload and Writing to File

I have a route which supposes to read a huge XML file and then write a CSV file with a header. XML Record needs to be transformed first so I map it to java POJO and then marshal it again to write into a csv file. I can't load all of the records in…
Jawad Ahmad
  • 124
  • 1
  • 8
0
votes
1 answer

Camel bindy: paralelle writing

I'm having a collection of objects that I would like to serialize into a same CSV file. What is the fastest way to write these objects into the same file ? Is using parallelProcessing() a safe approach ?
Hey StackExchange
  • 2,057
  • 3
  • 19
  • 35
0
votes
2 answers

Remove all new lines and make single line with n character

Generating CSV. I am trying to create a single string of description which has multiple next line. I tried : description = a.replaceAll("\n","\\\\n"); But I got \n and it does not come in one line Current Output IS0001;10381;Active Directory groups…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
0
votes
1 answer

Camel Apache FTP Looses LF

I have a issue with camel apache. My csv file has LF and CRLF in it. The LF is present in the values of my csv file. When camel gets my file from the ftp and put it on my desktop, the LF is no more there. But i need the LF character to format…
0
votes
0 answers

Apche camel Bindy How to make IllegalArguementException for fields which are blank

I am trying to parse an input text file ( not CSV) which is fixedFormat. @FixedLengthDataRecord(ignoreMissingChars = true, ignoreTrailingChars= true) public class ParsedDataRec { @DataField(pos = 3, length=5, required=false) public String…
user2442578
  • 31
  • 1
  • 1
  • 3