Re: Bindy to ignore empty lines?

2022-04-27 Thread Mikael Andersson Wigander
nevermind /M --- Original Message --- On Wednesday, April 27th, 2022 at 13:08, Mikael Andersson Wigander wrote: > Hi > > How can one make Bindy understand to ignore a file with empty lines? > I can't find any options for it. > > In empty I mean a csv file

Bindy to ignore empty lines?

2022-04-27 Thread Mikael Andersson Wigander
Hi How can one make Bindy understand to ignore a file with empty lines? I can't find any options for it. In empty I mean a csv file with two or more CR/LF at the end of the file… A,B,C,D E,F,G,H /M

Bindy problem

2021-02-24 Thread Brenneis, Steve
I am using camel-bindy version 3.8.0 and I'm hitting a null pointer exception because bindy selects the key-value pair format and ignores the annotated format type and XML-defined format when the model class is annotated with the Spring @Value annotation or if the XML bean definition con

Bindy question about quoting

2020-07-03 Thread Mikael Andersson Wigander
Hi In Bindy when marshalling from object to CSV you can state that it should use “quoting” by two options: quote and quoting. But there’s a third in the factory: quotingEscaped How should this be interpreted in the context of the other two options? Also in the documentation there’s an

Re: Bindy dataformat and ZonedDateTime

2020-05-06 Thread Alberto
3.x. > > > On Tue, May 5, 2020 at 10:11 AM Alberto wrote: > > Hello, > > > > I need to handle a ZonedDateTime attribute in a pojo with bindy dataformat. > > I > > found that ZonedDateTime is not handled wheras LocalDateTime is. > > Is there any part

Re: Bindy dataformat and ZonedDateTime

2020-05-05 Thread Claus Ibsen
Hi I am not sure if there is a reason not. You are welcome to create a JIRA and work on a PR to add this to Camel. Mind it has to be on master branch for Camel 3.x. On Tue, May 5, 2020 at 10:11 AM Alberto wrote: > > Hello, > > I need to handle a ZonedDateTime attribute in a poj

Bindy dataformat and ZonedDateTime

2020-05-05 Thread Alberto
Hello, I need to handle a ZonedDateTime attribute in a pojo with bindy dataformat. I found that ZonedDateTime is not handled wheras LocalDateTime is. Is there any particular reason for that? I solved writing a specific Format and using a @BindyConverter annotation but in that way I'm unab

Re: Re: Re: Bindy plus Unicode

2020-01-27 Thread Alex Dettinger
emes, that need features, > the old logic in the JDK > doesn't support. The lib is very common (e.g. LibreOffice uses it) and > AFAIK the de-facto standard > for working with elaborate Unicode. > > -- Mik > > > Gesendet: Freitag, 24. Januar 2020 um 19:15 Uhr >

RE: Re: Re: Bindy plus Unicode

2020-01-25 Thread dev
g, 24. Januar 2020 um 19:15 Uhr Von: "Alex Dettinger" An: users@camel.apache.org Betreff: Re: Re: Bindy plus Unicode Hi Michael, Good to know that you sorted it out :) The compatibility between the ICU4L and Apache License is not straightforward, we would need to look closer. Still c

Re: Re: Bindy plus Unicode

2020-01-24 Thread Alex Dettinger
ded? Only Camel 3.x or will it be backported to 2.2? > > -- Mik > > -- > Gesendet: Freitag, 24. Januar 2020 um 11:43 Uhr > Von: "Alex Dettinger" > An: users@camel.apache.org > Betreff: Re: Bindy plus Unicode > Hi Michael, > > I was just looking at this

RE: Re: Bindy plus Unicode

2020-01-24 Thread Michael Greulich
   -- Gesendet: Freitag, 24. Januar 2020 um 11:43 Uhr Von: "Alex Dettinger" An: users@camel.apache.org Betreff: Re: Bindy plus Unicode Hi Michael, I was just looking at this component for another purpose and it looks to me that fixed length tokenzat

Re: Bindy plus Unicode

2020-01-24 Thread Alex Dettinger
Hi Michael, I was just looking at this component for another purpose and it looks to me that fixed length tokenzation occurs here: https://github.com/apache/camel/blob/master/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyFixedLengthFactory.java#L212..L216 So

Bindy plus Unicode

2020-01-24 Thread Michael Greulich
Hi, I’m having problems with the bindy component and wonder if there is something I missed. Maybe one can help me addressing it. I cannot believe, that I’m the first to hit this problem. I need to port an EAI application built using bindy, that reads a fixed type file(*) converts it and

Re: Bindy column name annotation?

2019-08-31 Thread Claus Ibsen
wrote: > >>> > >>> Hi > >>> > >>> Can you maybe provide a small example or sample code what you are > looking for? > >>> > >>> On Wed, Aug 28, 2019 at 7:50 AM Mikael Andersson Wigander > >>> wrote: > >>>

Re: Bindy column name annotation?

2019-08-31 Thread Mikael Grevsten
rovide a small example or sample code what you are looking >>> for? >>> >>> On Wed, Aug 28, 2019 at 7:50 AM Mikael Andersson Wigander >>> wrote: >>>> >>>> Used for creating CSV files with a hierarchy of objects using @Link >>>

Re: Bindy column name annotation?

2019-08-30 Thread Claus Ibsen
ndersson Wigander > > wrote: > >> > >> Used for creating CSV files with a hierarchy of objects using @Link > >> annotation > >> > >> I find it odd NOT having the option to name the column using annotation > >> since you have control ov

Re: Bindy column name annotation?

2019-08-30 Thread Mikael Andersson Wigander
annotation >> >> I find it odd NOT having the option to name the column using annotation >> since you have control over other attributes… >> >> M >> >>> On 27 Aug 2019, at 18:52, George Daswani wrote: >>> >>> Are you using it to p

Re: Bindy column name annotation?

2019-08-30 Thread Claus Ibsen
column using annotation since > you have control over other attributes… > > M > > > On 27 Aug 2019, at 18:52, George Daswani wrote: > > > > Are you using it to parse CSV files? or produce CSV files? > > > > I suggest you use Camel-CSV instead. BIndy CSV

Re: Bindy column name annotation?

2019-08-27 Thread Mikael Andersson Wigander
CSV files? or produce CSV files? > > I suggest you use Camel-CSV instead. BIndy CSV has a couple of problems > with the first being it doesn't properly support RFC-4180 CSV files, and the > second being it uses reflection to set properties.. > > On Tue, Aug 27, 2019 at 12

Re: Bindy column name annotation?

2019-08-27 Thread George Daswani
Are you using it to parse CSV files? or produce CSV files? I suggest you use Camel-CSV instead. BIndy CSV has a couple of problems with the first being it doesn't properly support RFC-4180 CSV files, and the second being it uses reflection to set properties.. On Tue, Aug 27, 2019 at

Bindy column name annotation?

2019-08-27 Thread Mikael Andersson Wigander
Good morning. Using Bindy dataformat, in the documentation nothing states how to set column name but some example has the name attribute given as if possible to set the name of the column header to anything other than the field name. This appartently doesn’t work so question is, is it

Re: Strange results w/ Bindy (header, list, footer)

2018-08-01 Thread Christian Scharmach
but split them up into 2 methods, as maybe mutating the test for the 2nd test cause a side-effect or something. On Tue, Jul 24, 2018 at 9:56 AM, Christian Scharmach wrote: > Hello! > > > > I am using Camel-Bindy 2.22.0 and was trying to mar

Re: Strange results w/ Bindy (header, list, footer)

2018-07-30 Thread Claus Ibsen
-effect or something. On Tue, Jul 24, 2018 at 9:56 AM, Christian Scharmach wrote: > Hello! > > > > I am using Camel-Bindy 2.22.0 and was trying to marshal a CSV file with > following format: > > > > > > HeaderColumn:headerColumn:headerColumn > > BodyColumn;B

Strange results w/ Bindy (header, list, footer)

2018-07-24 Thread Christian Scharmach
Hello! I am using Camel-Bindy 2.22.0 and was trying to marshal a CSV file with following format: HeaderColumn:headerColumn:headerColumn BodyColumn;BodyColumn;BodyColumn;BodyColumn;BodyColumn BodyColumn;BodyColumn;BodyColumn;BodyColumn;BodyColumn FooterColumn;FooterColumn [etc

RE: How to add camel-bindy to osgi project - very urgent help required

2018-05-13 Thread Joerg Jansen
Hi, I think the problem is an invalid instruction within you Import-package of the your Felix-plugin. ... org.apache.camel.camel-bindy, ... As far as I know now special import instruction is needed (please correct me if I'm wrong ;) ). In our experience with using camel-bindy,

How to add camel-bindy to osgi project - very urgent help required

2018-05-11 Thread Anton Hughes
Im trying to use camel-bindy in an OSGi project. However I get the following error: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.8:assembly (karaf-assembly) on project karaf2-cxf-rest: Unable to build assembly: Unable to resolve root: missing requirement [root

Re: Bindy for fixed length format with optimizations

2017-10-19 Thread Marcin Domański
TrailingChars. Example: > Lets have field pos 1 length 1 and field 2 length 2000, but for > performance reasons, if second field has less than 2000 characters it is > not padded. Therefore total length can be less than 2001 chars. > > Is it cuttently possible to parse such data with Bindy? > > Adie >

Re: Bindy for fixed length format with optimizations

2017-10-19 Thread Marcin Domański
padded. Therefore total length can be less than 2001 chars. > > Is it cuttently possible to parse such data with Bindy? > > Adie >

Bindy for fixed length format with optimizations

2017-10-18 Thread Marcin Domański
2 length 2000, but for performance reasons, if second field has less than 2000 characters it is not padded. Therefore total length can be less than 2001 chars. Is it cuttently possible to parse such data with Bindy? Adie

RE: Bindy Data Format Unmarshalling question

2017-08-26 Thread Goodwin, Matthew
Never mind. Problem solved. Thanks, Matt -Original Message- From: Goodwin, Matthew Sent: Sunday, August 27, 2017 12:01 AM To: users@camel.apache.org Subject: Bindy Data Format Unmarshalling question Hi Camel Community, I am using Bindy to format a file that has a header, footer, and

Bindy Data Format Unmarshalling question

2017-08-26 Thread Goodwin, Matthew
Hi Camel Community, I am using Bindy to format a file that has a header, footer, and one to many detail records. Things are working fine but it looks like within the BindyAbstractDataFormat class in the extractUnmarshalResult method it checks to see if there is one or multiple records. If it

Re: Bindy DefaultValue is not working. Need help

2017-05-23 Thread Onder SEZGIN
; > > -- > > View this message in context: http://camel.465427.n5.nabble. > com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5800037.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > - > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 >

Re: Bindy DefaultValue is not working. Need help

2017-05-22 Thread Claus Ibsen
You can create a JIRA and submit a fix via github PR http://camel.apache.org/contributing > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5800037.html > Sent from the Camel - Users mailing list

Re: Bindy DefaultValue is not working. Need help

2017-05-22 Thread kschroeder
I noticed this issue was only resolved for the CSV Factory. How would I go about submitting a similar bug for the FixedLength factory? It's probably a bad idea to have inconsistencies between the different factories. -- View this message in context: http://camel.465427.n5.nabble.com/

Re: Bindy DefaultValue is not working. Need help

2017-03-14 Thread Amruta Jawlekar
Thank you very much! -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5795437.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy DefaultValue is not working. Need help

2017-03-14 Thread Tomohisa Igarashi
CSV to object. For marshalling from object to CSV, unbind method is used in which defaultvalue is not set. Let me know if my understanding is correct. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5795409.html Sent from

Re: Bindy DefaultValue is not working. Need help

2017-03-14 Thread Amruta Jawlekar
ttp://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5795409.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy DefaultValue is not working. Need help

2017-03-13 Thread Amruta Jawlekar
2.17.3 org.springframework spring-context 4.2.5.RELEASE org.apache.camel camel-bindy

Bindy DefaultValue is not working. Need help

2017-03-13 Thread Amruta Jawlekar
Hi, I am using camel-bindy to put default value for some fields. But it is not populating the default values in the final csv document. camel-context: In this class: @DataField(pos = 2, defaultValue

Re: Camel Bindy - Mixed fixed and variable length processing?

2017-02-11 Thread Walzer, Thomas
feature the producer will > introduce new fields at the end of the record therefore increase the length. > So I need my application to be able to handle both lengths as it comes so > that I don't have to release my code together with the producer. Is this > something easily achievable

Re: Camel Bindy - Mixed fixed and variable length processing?

2017-02-10 Thread ruili1
that I don't have to release my code together with the producer. Is this something easily achievable in Bindy? Or I need to write my own formatter as well? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Bindy-Mixed-fixed-and-variable-length-proce

bindy trim fixedlength

2017-01-25 Thread erik_romson
im on both sides also the documentation on this is not updated. thanks for all good work /erik -- View this message in context: http://camel.465427.n5.nabble.com/bindy-trim-fixedlength-tp5793047.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Bindy - Mixed fixed and variable length processing?

2017-01-20 Thread Claus Ibsen
Hi I dont think this is a good use-case for using bindy when you have such a special format. I would write my own formatter, just read the line and parse it yourself in a java bean and transform to the POJO model you like. On Wed, Jan 18, 2017 at 3:15 PM, Michel Betancourt wrote: > Hi Ca

Camel Bindy - Mixed fixed and variable length processing?

2017-01-18 Thread Michel Betancourt
Hi Camel Users, I am new to Camel and Camel Bindy and read through all the documentation for Bindy. Due to my newbie-ness it’s not perfectly clear if Bindy can read the message without additional customization. I’ve got a message such as this one: YYY000g20 where the first 9

Re: What is the Camel endpoint for marshalling using bindy dataformat?

2017-01-06 Thread Raghavan83
The end goal is to create a FixedLengthRecord feed which maps to 4 different model classes.I would be iterating a Collection which has the appropriate input and based on loop index%4 (modulus operator), route to appropraite bindy marshaller endpoint using recipientList -- View this message in

Re: What is the Camel endpoint for marshalling using bindy dataformat?

2017-01-06 Thread Claus Ibsen
There is a dataformat component you can use http://camel.apache.org/dataformat-component.html On Fri, Jan 6, 2017 at 2:44 AM, DariusX wrote: > Bindy is not literally an endpoint, so what's the underlying problem you're > trying to solve by treating it as an endpoint? Is it that

Re: What is the Camel endpoint for marshalling using bindy dataformat?

2017-01-05 Thread DariusX
Bindy is not literally an endpoint, so what's the underlying problem you're trying to solve by treating it as an endpoint? Is it that you want to make a choice, and route through different formats, or something else? What's the underlying question? -- View this message in context

What is the Camel endpoint for marshalling using bindy dataformat?

2017-01-05 Thread Raghavan83
I have a requirement to dynamically create camel-bindy endpoint for marshalling the input. Below is the sample code: Instead of , I need to use and pass to the equivalent end-point. I tried below syntax but getting error "Cannot find dataformat with name bindy"

Marshaling with multiple BindyFixedLengthDataFormat models (camel-bindy-2.17)

2016-12-21 Thread Raghavan83
I am currently trying to upgrade from camel-bindy-2.11.0 to camel-bindy-2.17.0 and am running into a problem when trying to apply a model consisting of multiple classes to a data set resulting in a single text file. I had a number of classes in a package (com.sample.package) that I could use for

Re: camel-bindy issue with header and missing locale

2016-12-21 Thread Claus Ibsen
Hi Yeah sounds like an issue, you are welcome to log a JIRA and provide a patch or better github PR http://camel.apache.org/contributing On Tue, Dec 20, 2016 at 5:01 PM, dabby11 wrote: > Hi, > > I'm developing a route with Camel 2.16.1 that uses Bindy to process a file >

camel-bindy issue with header and missing locale

2016-12-20 Thread dabby11
Hi, I'm developing a route with Camel 2.16.1 that uses Bindy to process a file with fixed length records. The file consists of a header and many rows. I'm unmarshalling the stream with the following data format: BindyFixedLengthDataFormat bindy = new BindyFixedLength

camel-bindy issue with header and missing locale

2016-12-20 Thread dabby11
Hi, I'm developing a route with Camel 2.16.1 that uses Bindy to process a file with fixed length records. The file consists of a header and many rows. I'm unmarshalling the stream with the following data format: BindyFixedLengthDataFormat bindy = new BindyFixedLength

Bindy KeyValuePairField where key is a String

2016-10-11 Thread Karts
Hi I have the following message I'd like to unmarshal into a POJO with Bindy : KeyABC=value1:KeyDEF=value2: It looks like the key (i.e. tag) needs to be an int. Is there any way with Bindy to handle this kind of format? Thanks -- View this message in context: http://camel.4654

Re: Error in bindy documentation

2016-09-28 Thread Claus Ibsen
Or even better contribute yourself and provide a fix in the bindy.adoc as a github PR https://github.com/apache/camel/blob/master/components/camel-bindy/src/main/docs/bindy-dataformat.adoc How to contribute http://camel.apache.org/contributing The old wiki docs are going away. However how to

Re: Error in bindy documentation

2016-09-28 Thread Charles Moulliard
Hi, Can you open a ticket please to report such enhancement ? Regards, On Wed, Sep 28, 2016 at 7:29 PM, Knut-Håvard Aksnes wrote: > Between 2.15 and 2.16 there were made a couple of backwards incompatible > changes in Bindy. > The first: The change in the constructor of CsvDataforma

Error in bindy documentation

2016-09-28 Thread Knut-Håvard Aksnes
Between 2.15 and 2.16 there were made a couple of backwards incompatible changes in Bindy. The first: The change in the constructor of CsvDataformat is well documented. The second: The change in return type of unmarshal from List> to List is not documented in http://camel.apache.org/bindy.h

Re: Unmarshal fixed lenght Binary data format using Bindy

2016-07-20 Thread Antoine DESSAIGNE
ubhkane : > Hi, > > I have a fixed length Binary data in Bit pack format. > > Can I use the Bindy DataFormat to unmarshal the binary data? > > I looked at the details of the Bindy DataFormat. It provides the ability > where using the Annotations the user can map the data model

Unmarshal fixed lenght Binary data format using Bindy

2016-07-19 Thread kaustubhkane
Hi, I have a fixed length Binary data in Bit pack format. Can I use the Bindy DataFormat to unmarshal the binary data? I looked at the details of the Bindy DataFormat. It provides the ability where using the Annotations the user can map the data model to POJO. This way user has to only

Camel Bindy - marshal fixed file with heade,footer and section

2016-06-15 Thread Scisci
\r\n as the number of object in the list. How to create with bindy a file like I've desribed above? Thanks Mirko -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Bindy-marshal-fixed-file-with-heade-footer-and-section-tp5784073.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-bindy not binding well when first column value is null

2016-05-18 Thread DianaAZ
ed to the column 2 binded attribute (sku), and the the actual attribute binded to column 3 stays null:VENDOR->SKU->STOCKnull->123->5Vendor1->166->10Produces this mapping:[{ vendor: "123",sku: "5",stock: null},{vendor: "Vendor1",sku: "

Re: Camel bindy not working in Spring boot

2016-04-13 Thread Charles Moulliard
_CONVERT_TO_CSV) > .log("Received request for S3 upload") > .marshal().bindy(BindyType.Csv, "com.domain") > .setHeader(S3Constants.KEY, > > simple("${date:now:-MM-dd}"+"/"+Constants

Re: Camel bindy not working in Spring boot

2016-04-13 Thread cgsk
I dont have a test case, but below is the route where I pass a List of Map of my model class. from(Constants.ROUTE_CONVERT_TO_CSV) .log("Received request for S3 upload") .marshal().bindy(BindyType.Csv, &

Re: Camel bindy not working in Spring boot

2016-04-13 Thread Charles Moulliard
Enumeration enumeration = super.getResources(loader, > "com/domain/"); > if (!enumeration.hasMoreElements()) { > > enumeration = loader.getResources("com/domain/"); > } > > return enumeration; > } > } > > > &g

Re: Camel bindy not working in Spring boot

2016-04-13 Thread cgsk
rn enumeration; } } -- View this message in context: http://camel.465427.n5.nabble.com/Camel-bindy-not-working-in-Spring-boot-tp5780995p5781012.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel bindy not working in Spring boot

2016-04-13 Thread cgsk
Hi There, I am using Bindy csv format to marshal to csv file. Everything works fine if i run from ecplise, but fails with the below exception if ran as a spring boot jar from command line. I tried creating custom PackageScanClassResolver extending DefaultPackageScanClassResolver, but no luck. I

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

Camel-Bindy - unusual default Date format

2016-01-26 Thread kgscorp
Hi all! I have a situation where I use Camel-Bindy to create fixed-length records, which are to be written to/read from a legacy (and of course, unmodifiable) system. The specification of the records asks all dates to be formatted with a ddMM pattern, except for "empty" date fie

Bindy mixing fixedlength and csvRecord

2016-01-25 Thread souciance
Hello, Is it possible to combine fixedlength record with csvrecord in bindy using two different models i.e. two different classes? For example say you have the following input data: 09N2010093009384820100930093848AP|AOMAIN|AB11|AC| The first part "09N20100930093848201

Bindy dataformat usage in Spring v/s Java DSL

2015-10-21 Thread calyan.bandi
= exchange.getIn().getBody(List.class); for(Order order : orders) { // simply reading the order object and doing processing } Recently, we moved to Java DSL and the code looks as below and below is how we have our route written. DataFormat bindy = new BindyCsvDataFormat("org.examples.camel.model&quo

Inspect marshalled Pojo with a Processor with Camel and Bindy

2015-07-27 Thread Mechkov
I have a flat file, in which each line needs to be captured and unmarshalled into a `POJO`. I am using `Camel` and `Bindy` and utilizing the `Splitter EIP`. For some reason i am not able to inspect the `POJO` (using a `Processor`) after the unmarshalling completed. Any suggestions? I am trying

Re: Camel Bindy bean as Parameter in Spring Jms Component using @Consume

2015-07-14 Thread Claus Ibsen
Hi Ah yeah there is no type converter that supports bindy as a fallback. So you would need to use the dataformat as David says. Though it begs the question for pojo consuming if we should add some annotation to add a conversion step so you can point to a data format / type converter (the latter

Re: Camel Bindy bean as Parameter in Spring Jms Component using @Consume

2015-07-14 Thread David Karlsen
You need to define a dataformat step in your route: https://camel.apache.org/data-format.html for bindy: http://camel.apache.org/binding.html alternatively you can bind the dataformat to the endpoint: http://camel.apache.org/binding.html 2015-07-14 17:53 GMT+02:00 vivekrao001 : > @Consume(

Camel Bindy bean as Parameter in Spring Jms Component using @Consume

2015-07-14 Thread vivekrao001
uired type: com.myapp.component.Order with value 1122. Could somebody help me, if I'm missing any configuration? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Bindy-bean-as-Parameter-in-Spring-Jms-Component-using-Consume-tp5769301.html Sent from the Camel - Users mailing

Re: Intercepting Bindy setter actions

2015-06-17 Thread Claus Ibsen
> On Wed, Jun 17, 2015 at 12:01 PM, Giorgio Vespucci >> wrote: >> > Hi everybody :) >> > I'm wondering how Bindy is setting values from a CSV file to Java fields. >> > >> > It looks that it's not using setter methods the POJO exposes. >> &

Re: Intercepting Bindy setter actions

2015-06-17 Thread Giorgio Vespucci
espucci > wrote: > > Hi everybody :) > > I'm wondering how Bindy is setting values from a CSV file to Java fields. > > > > It looks that it's not using setter methods the POJO exposes. > > Is there a way to intercept Bindy setter actions, so that an additi

Re: Intercepting Bindy setter actions

2015-06-17 Thread Claus Ibsen
Hi Sorry but I would refer to looking at the source code. But yeah ideally it should use setter over direct fields if possible. But the source code will tell what it does today. On Wed, Jun 17, 2015 at 12:01 PM, Giorgio Vespucci wrote: > Hi everybody :) > I'm wondering how Bindy

Intercepting Bindy setter actions

2015-06-17 Thread Giorgio Vespucci
Hi everybody :) I'm wondering how Bindy is setting values from a CSV file to Java fields. It looks that it's not using setter methods the POJO exposes. Is there a way to intercept Bindy setter actions, so that an additional behavior could be executed? I'm using Camel 2.14.3. B

RE: Bindy running within a WAR

2015-04-23 Thread Bonnet Benjamin
:35 À : users@camel.apache.org Objet : Re: Bindy running within a WAR I'm facing the similar issue with my war. I'm using wildfly 8.2.0 & Camel 2.14.1. My route uses bindy to unmarshal csv to domain object. Junits are working & war deployed on tomcat also works. I'm get

Re: Bindy running within a WAR

2015-04-22 Thread RaviP
I've moved on by changing it to beanio. thanks Ravi. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running-within-a-WAR-tp5765035p5766174.html Sent from the Camel - Users mailing list archive at Nabble.com.

Bindy marshalling large CSV

2015-04-21 Thread iambutcha
Hi. I am using Bindy in order to marshal a large set of data (in batches) to a CSV file. The problem that I am seeing is that Bindy does not seem to offer any streaming solution. This means it is expecting a single message (with the CSV content) to be loaded in memory in order to start writing

Re: Bindy running within a WAR, widlfly 8.2.0 and Camel

2015-04-17 Thread sanjay.gautam
y is not getting populated with the seperator even though I have defined it correctly . *ERROR *at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:293) [camel-core-2.15.0.jar:2.15.0] at org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat.unmarshal(BindyCsvDataFormat.java:137) [ca

Re: Bindy running within a WAR

2015-04-15 Thread RaviP
.5.RELEASE wildfly-camel-patch also contains 4.1.5.RELEASE. thanks Ravi. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running-within-a-WAR-tp5765035p5765831.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy running within a WAR

2015-04-13 Thread Charles Moulliard
Hi Ravi, Have you tried to use the camel bindy "module" instead of packaging all the deps within the war file ( http://wildflyext.gitbooks.io/wildfly-camel/content/components/camel-bindy.html, http://wildflyext.gitbooks.io/wildfly-camel/content/start/index.html) ? Regards, On Mon, Ap

Re: Bindy running within a WAR

2015-04-13 Thread RaviP
I'm facing the similar issue with my war. I'm using wildfly 8.2.0 & Camel 2.14.1. My route uses bindy to unmarshal csv to domain object. Junits are working & war deployed on tomcat also works. I'm getting the following exception when i deploy t

Re: Bindy running within a WAR

2015-03-31 Thread Ted
Okay, thanks Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running-within-a-WAR-tp5765035p5765084.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy running within a WAR

2015-03-31 Thread Claus Ibsen
like this: > > @Bean > BeltPackageScanClassResolver beltResolver() { > BeltPackageScanClassResolver resolver = new > BeltPackageScanClassResolver(); > > return resolver; > } > > Am I missing something? > > > > -- > View this messa

Re: Bindy running within a WAR

2015-03-31 Thread Ted
= new BeltPackageScanClassResolver(); return resolver; } Am I missing something? -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-running-within-a-WAR-tp5765035p5765077.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy running within a WAR

2015-03-30 Thread Claus Ibsen
Hi What web server do you use for the War? Is it jetty or tomcat or something else? Yeah bindy unfortunately uses that annotation scanning on classpath. There is a ticket to improve this for the future. You can impement a custom yourself that can load in the WAR. http://camel.apache.org

Bindy running within a WAR

2015-03-30 Thread Ted
Hi, I have a self executable Spring Boot (1.2.2) and Camel Boot (2.15.0) application built as a WAR. My route makes use of Bindy to unmarshal CSV to my object class. Everything work well when I run the code directly using Maven (mvn spring-boot:run) or if I run using Eclipse. However if I

Re: camel bindy 2.14.1 and jboss-eap 6.3.3

2015-03-11 Thread Scisci
Thanks, now works. I've added on pom org.apache-extras.camel-extra camel-jboss6 2.13.2 and this on applicationContex Thanks -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-2-14-1-and-jboss-eap-6-3-3-tp5763997p5764003.html Sent

Re: camel bindy 2.14.1 and jboss-eap 6.3.3

2015-03-11 Thread Claus Ibsen
Hi You may need to use a 3rd party jboss classloader module. See more details at http://camel.apache.org/camel-jboss.html On Wed, Mar 11, 2015 at 11:14 AM, Scisci wrote: > Hi, > I'm trying to use bindy on camel 2.14.1 with a WAR deploy on jboss-eap 6.3.3 > this is my camel cont

camel bindy 2.14.1 and jboss-eap 6.3.3

2015-03-11 Thread Scisci
Hi, I'm trying to use bindy on camel 2.14.1 with a WAR deploy on jboss-eap 6.3.3 this is my camel context: http://camel.apache.org/schema/s

Re: Bindy - Date Unmarshall Issue

2015-03-04 Thread Claus Ibsen
Hi It seems because bindy uses strict parsing by setting lenient = false df.setLenient(false); date = df.parse(string); It should maybe not do that, and just use SimpleDataFormat parsing as default out of the box. On Fri, Feb 20, 2015 at 2:00 AM, kc525 wrote: >

Re: Bindy - Date Unmarshall Issue

2015-02-24 Thread Charles Moulliard
Hi, Can you provide an example that we could test as the date pattern used seems good. So, we should have a look to the code to see why it failed for you. Regards, On Fri, Feb 20, 2015 at 2:00 AM, kc525 wrote: > I ran into an issue with Apache Camel Bindy data format for the Date fi

Bindy - Date Unmarshall Issue

2015-02-19 Thread kc525
I ran into an issue with Apache Camel Bindy data format for the Date field parsing from a CSV file. *Date in the CSV : 02/11/2015 03:34:49 PM.* Format in the Bindy Class annotated as *@DataField(pos = 8,pattern="MM/dd/ hh:mm:ss a") private Date time;* Getting below

Re: Camel bindy, empty file cause Exception

2015-02-12 Thread Claus Ibsen
Hi Yes you need to filter this outside bindy as it expects that there is data On Thu, Feb 12, 2015 at 11:15 AM, kalber wrote: > Hi, > > is there a way to avoid 'java.lang.IllegalArgumentException: No records have > been defined in the CSV' > when the input file is c

Camel bindy, empty file cause Exception

2015-02-12 Thread kalber
http://camel.465427.n5.nabble.com/Camel-bindy-empty-file-cause-Exception-tp5762637.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy: using a multi-character separator for marshalling

2014-11-20 Thread Claus Ibsen
ethod where the > separator is converted from String to char. > char separator = ConverterUtils.getCharDelimiter(this.getSeparator()); > > Is it possible to use a multi-character separator in Bindy? > > Thanks a lot in advance. > > > > > > > -- > View this

Bindy: using a multi-character separator for marshalling

2014-11-20 Thread ozzy81
multi-character separator in Bindy? Thanks a lot in advance. -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-using-a-multi-character-separator-for-marshalling-tp5759364.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: bindy: different behavior between marshal and unmarshal with pipe separator '|'

2014-11-20 Thread ozzy81
The escape characters are still added into the Header Columns when marshalling back the object. e.g. Separator = \\| Output: Header 1\|Header2\|... Version:2.13.2 -- View this message in context: http://camel.465427.n5.nabble.com/bindy-different-behavior-between-marshal-and-unmarshal-with

  1   2   3   4   5   >