Re: csv data format with ordered maps

2018-03-07 Thread Dennis Holunder
Thx, In newer camel versions it is indeed public. Unfortunately, I can't upgrade right now 2018-03-07 16:45 GMT+01:00 Claus Ibsen-2 [via Camel] : > Hi > > I logged a ticket and implemented this > https://issues.apache.org/jira/browse/CAMEL-12332 > > The

Having problem with creating producer from camel route for Kafka

2018-03-07 Thread Ranabroto Ghosh
Hi I have simple route triggered by REST api and want to put a message to kafka pom.xml: using camel 2.20.0 Camel route: Error I get I have tried removing all unknown parameters, and tried simple Then i get below erro I can confirm my kafka server is working fine, as i can put message

Re: csv data format with ordered maps

2018-03-07 Thread Dennis Holunder
in camel-csv component CsvRecordConverters.mapConverter().convertRecord(CSVRecord record) it calls CSVRecord.toMap() which returns HashMap but CSVRecord is in org.apache.commons.csv would be great if you could change it. 2018-03-07 13:13 GMT+01:00 Claus Ibsen-2 [via Camel]

Having problem while creating producer from camel route for Kafka

2018-03-07 Thread Ranabroto Ghosh
Hello I have simple route triggered by REST api and want to put a message to kafka *pom.xml* org.apache.camel camel-kafka 2.20.0 org.apache.kafka kafka-clients org.apache.kafka kafka-clients 1.0.1 Camle Route: ${header.id}

Re: Having problem while creating producer from camel route for Kafka

2018-03-07 Thread Andrea Cosentino
The options you're trying to use are wrong: you need to use requestRequiredAcks instead of acks in the uri and brokers instead of bootstrapServers. You can find the option here for 2.20.x

Re: csv data format with ordered maps

2018-03-07 Thread Claus Ibsen
Hi Can you point to where it creates HashMap, maybe we can change that to LinkedHashMap. On Wed, Mar 7, 2018 at 12:08 PM, Dennis Holunder wrote: > Hello, > > I need a CSV record mapper which would use maps, but ordered ones, > because I need the name of the first header

csv data format with ordered maps

2018-03-07 Thread Dennis Holunder
Hello, I need a CSV record mapper which would use maps, but ordered ones, because I need the name of the first header field. Current implementation creates HashMaps, where the original order is lost. I tried to implement my own CsvRecordConverter to produce ordered map, but the interface is not

Re: csv data format with ordered maps

2018-03-07 Thread Claus Ibsen
Hi I logged a ticket and implemented this https://issues.apache.org/jira/browse/CAMEL-12332 The CsvRecordConverter is a public interface from camel-csv. You can implement your own, and configure on the dataformat On Wed, Mar 7, 2018 at 4:26 PM, Dennis Holunder wrote: >

Re: csv data format with ordered maps

2018-03-07 Thread Claus Ibsen
Hi Ah okay that is unfortunately in the commons-csv implementation. You would need to report this to them. Sadly there is no way to get the mapping on CSVRecord so we can get the column headers (we could maybe do some reflection as workaround). On Wed, Mar 7, 2018 at 3:29 PM, Dennis Holunder

Re: Having problem with creating producer from camel route for Kafka

2018-03-07 Thread Ranabroto Ghosh
I am sorry, yes i created another post and got solution already. Many thanks. On 7 March 2018 at 15:11, Ranabroto Ghosh wrote: > I am sorry, yes i created another post and got solution already. Many > thanks. > > On 7 March 2018 at 15:08, Claus Ibsen-2 [via

Re: csv data format with ordered maps

2018-03-07 Thread Dennis Holunder
But you could make CsvRecordConverter public, so I could implement the mapper myself. Or you implement converting of CSVRecord to LinkedHashMap, shouldn't be a big deal 2018-03-07 16:17 GMT+01:00 Claus Ibsen-2 [via Camel] : > Hi > > Ah okay that is

Re: Having problem with creating producer from camel route for Kafka

2018-03-07 Thread Claus Ibsen
Hi We cannot se HTML emails with screenshots etc. Can you please post plain text emails. On Wed, Mar 7, 2018 at 3:18 PM, Ranabroto Ghosh < ranabroto.gh...@globalcharge.com> wrote: > Hi I have simple route triggered by REST api and want to put a message to > kafka > > pom.xml: using camel 2.20.0

Re: Creating REST API service from yaml

2018-03-07 Thread Claus Ibsen
Hi If you have any more feedback and ideas for improving that tool you are welcome to share. Also we love contributions so code patches / PRs is welcome http://camel.apache.org/contributing On Tue, Mar 6, 2018 at 6:01 PM, wrote: > OK, I will wait for XML support in

Re: Having problem while creating producer from camel route for Kafka

2018-03-07 Thread Ranabroto Ghosh
Many thanks, it worked. On 7 March 2018 at 14:52, Ranabroto Ghosh wrote: > Many thanks, it worked. > > On 7 March 2018 at 14:35, Andrea Cosentino-2 [via Camel] < > ml+s465427n581824...@n5.nabble.com> wrote: > >> The options you're trying to use are wrong: >>