Get BeanCreationException when try to add Jackson Library to my applicationContext.xml

2013-10-10 Thread erj2code
I have a simple Hello World example that passes a Map to Camel and displays the values to the console via Log4J. I want to expand this example to render this map in JSON by adding the Jackson library to my Camel applicationContext.xml First I tried adding the following XML tags to my applicationC

Re: Get BeanCreationException when try to add Jackson Library to my applicationContext.xml

2013-10-11 Thread erj2code
I moved it, and that worked. -- View this message in context: http://camel.465427.n5.nabble.com/Get-BeanCreationException-when-try-to-add-Jackson-Library-to-my-applicationContext-xml-tp5741314p5741369.html Sent from the Camel - Users mailing list archive at Nabble.com.

How do I convert the map returned to Camel into JSON?

2013-10-11 Thread erj2code
This seems like such a simple thing to do, yet I can't seem to find it in the Camel documentation. Related to my last question i.e., http://camel.465427.n5.nabble.com/Get-BeanCreationException-when-try-to-add-Jackson-Library-to-my-applicationContext-xml-td5741314.html I now have my code putting th

Re: How do I convert the map returned to Camel into JSON?

2013-10-11 Thread erj2code
Actually to clarify I don't need the , Out: null] part. Just this part would be fine: {"fruit1DataType":"String","fruit1":"apple","fruit1Calories":"95","fruit1ColorDataType":"String","fruit1CaloriesDataType":"int","fruit1Color":"red"} -- View this message in context: http://camel.465427.n5.na

Re: How do I convert the map returned to Camel into JSON?

2013-10-11 Thread erj2code
Would I use convertBodyTo described on http://camel.apache.org/convertbodyto.html to convert the body to String? I'm still a newbie with Camel; could you show me an example? -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-convert-the-map-returned-to-Camel-into-JSON-

Re: How do I convert the map returned to Camel into JSON?

2013-10-11 Thread erj2code
Thanks, that worked! -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-convert-the-map-returned-to-Camel-into-JSON-tp5741370p5741377.html Sent from the Camel - Users mailing list archive at Nabble.com.

How do I load properties with Spring when also using Camel?

2013-10-14 Thread erj2code
I have a HelloWorld Java project that uses Camel to obtain a Map, and print out its contents in JSON format. The Map currently has hardcoded values, but I really want to change my code so that it uses Spring to load a sensor.properties file of nested key,value pairs into this Map. I have another

How do I marshall nested key,value pairs into JSON with Camel and Jackson library?

2013-10-15 Thread erj2code
I have a Java project that currently returns a map to Camel without any nested key,value pairs, and the Jackson library marshalls it just fine into JSON using the Jackson library. For example if I put the following two key,values into a demoMap: Map demoMap = new TreeMap demoMap.put("key1

Re: How do I marshall nested key,value pairs into JSON with Camel and Jackson library?

2013-10-16 Thread erj2code
Yes, that was me. I asked it both here and there since I didn't know who would respond more quickly. -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-marshall-nested-key-value-pairs-into-JSON-with-Camel-and-Jackson-library-tp5741618p5741665.html Sent from the Camel -

Does camel-jackson 2.12.1 support marshalling of nested objects into nested JSON?

2013-10-21 Thread erj2code
I have the following two Java classes (SensorData, and Visibility) to store dummy sensor data, and their respective visibilities into two objects: SensorData.java package com.data.world2; import java.util.Map; import java.util.TreeMap; import com.fasterxml.jackson.annotation.JsonAn

Issue loading multiple properties files

2013-10-25 Thread erj2code
I posted this question on Stack Overflow yesterday: http://stackoverflow.com/questions/19575425/loading-multiple-properties-files-with-camel but haven't gotten any responses yet. Basically I'm trying to load another properties file in addition to the ones I have and I can't get it to work. Any i

Re: Issue loading multiple properties files

2013-10-25 Thread erj2code
Can you clarify what exactly I need to adjust to fix my Spring error? -- View this message in context: http://camel.465427.n5.nabble.com/Issue-loading-multiple-properties-files-tp5742200p5742213.html Sent from the Camel - Users mailing list archive at Nabble.com.