There is some database examples https://github.com/apache/camel/tree/master/examples
And there are also some Camel books which cover using database with Camel http://camel.apache.org/books On Tue, Apr 4, 2017 at 6:24 PM, romdj <[email protected]> wrote: > Hello everyone, > I apologize in advance as this is basic stuff, but after a full day of > searching my brain is begging me to write this. > > So my goal is very simpleStupid, I'm querying a sql server db and I want to > export that data to either json or csv. > So using jdbc for the query returns an ArrayList<HashMap>. So obvious choice > in my mind would be to try to use Jackson ObjectMapper but when I add > <dataFormats><json id="jack" library="Jackson" prettyPrint="true" > objectMapper="myMapper" /></dataFormats> > I got /Attribute 'objectMapper' is not allowed to appear in element 'json'./ > > Besides, I wouldn't know how to properly use it as I don't know how I could > properly use it. > The examples I have are queries run in JS in a CDATA long string. > > Is there any place where I can find a simple example of some data being > fetched and exported from a sql db? This would be enormous. > > Thank you so much! > Romain > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Parsing-exporting-sql-result-tp5796926.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
