Mined Opinions For API: org.apache.camel

This tab contains all the opinions collected from Stack Overflow about the API. The other tabs present summaries of the opinions using different algorithms.
  • Thanks.. details
  • Really good, didn't know the onException !.. details
  • So, for example if I specify visibilities for key1, and key2, but not key3 I want to get JSON out that looks like this: CODESNIPPET_JAVA3 .. details
  • How do I marshall nested key,value pairs into JSON with Camel and Jackson library?. details
  • How can I get Camel to marshall a Java object with nested key,value pairs?. details
  • 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.. details
  • However, now some of my key,value entries will have an optional visibility that I need to put as a nested key value in my map.. details
  • For example if I put the following two key,values into a demoMap: CODESNIPPET_JAVA1 .. details
  • I tried changing my Map to have a value as an object i.e.,: CODESNIPPET_JAVA4 .. details
  • I'm a visual learner, so a simple example would be helpful.. details
  • I have a simple Hello World example that passes a Map to Camel and displays the values to the console via Log4J.. details
  • Here is my current applicationContext.xml: UPDATED: The following xml now works.. details
  • For those wondering why I need such a configuration, it's because I'm developing a REST webservice for URL_http://emberjs.com/ [ember.js] (more specifically Ember Data).You would appreciate very much if you could help with any of the requirements.. details
  • Thanks!. details
  • Requirement #6 can be accomplished by configuring CODETERM12 in the following way: CODESNIPPET_JAVA4 .. details
  • So far... Requirement #5 can be accomplished by configuring CODETERM10 in the following way: CODESNIPPET_JAVA3 .. details
  • Thanks a lot!.. details
  • Thanks!.. details
  • Yes, this can be achieved with TypeConverters URL_http://camel.apache.org /type-converter.html [ URL_http://camel.apache.org/type-converter.html ] You can also perform this explicitly with the dataFormats element too URL_http://camel.apache.org/data-format.html [ URL_http://camel.apache.org/data - format.html] Hope that helps :) .. details
  • Here my simple context : CODESNIPPET_JAVA1 .. details
  • The server receives json value as: CODESNIPPET_JAVA1 .. details
  • Thanks for your response.. that helped me a bit ... details
  • Thanks for your response.. that helped me a bit ... details
  • in this way we can smart proxy (ie content route and mediate on transport and payload) for ALL json based rest services through WSO2 with no issues This solves the problem (I think camel does it this way by default).. details
  • in this way we can smart proxy (ie content route and mediate on transport and payload) for ALL json based rest services through WSO2 with no issues This solves the problem (I think camel does it this way by default).. details
  • You are welcome -- thanks for confirming this works!.. details
  • You are welcome -- thanks for confirming this works!.. details
  • Thanks very much, that was spot-on.. details
  • I have found the following setting works perfect when reading json with underscored attributes and using camelcasing in my models.. details
  • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of CODETERM1 (something like this)?. details
  • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of CODETERM1 (something like this)?. details
  • Thanks .. details
  • Thanks .. details
  • To map "last_name", you have couple of options: use CODETERM2 next to get method to rename JSON property used use a CODETERM3 (like CODETERM4 ), registered with "ObjectMapper.setNamingStrategy()" to change how Bean properties are mapping JSON names Latter method makes sense if all your data comes using naming convention different from Java Bean naming convention (camel case).. details
  • And my object model is like: CODESNIPPET_JAVA2 .. details
  • And my object model is like: CODESNIPPET_JAVA2 .. details
  • EDIT: It looks like there's not a clean way to do this externally.. details
  • GSON only maps them if they are named totally equal, it would be nice to have GSON convert the names to Java camel case isOnline.. details
  • It works pretty well in all my tests.The problem is that our real objects have some properties named like is_online.. details
  • Unfortunately this didn't helped me :-/ Any other suggestion?. details
  • I modified my ApplicationContext.xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 25; cvc-complex-type.2.4.a: Invalid content was found starting with element 'camel:dataFormats'.. details
  • Changed constructor to use Upper case as per 'HourlySalesFigures' in both the argument and constructor body, same thing again.. details
  • I modified my ApplicationContext.xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 25; cvc-complex-type.2.4.a: Invalid content was found starting with element 'camel:dataFormats'.. details
  • @adam Yes, missed it.. details
  • Right now I just hardcoded the default visibility to "a", but will change that later to also be pulled from a properties file.. details
  • Moving these tags inside or outside of my camelContext yields the same error (just a longer list of URLs when inside the camelContext).. details
  • camel serialize json in dead letter queue.. details
  • Alternatively, you could adapt the C# side to output lower camel case CODETERM4 of course.. details
  • Keep your fields properly named in Java style as lower camel case and tell Gson to use URL_http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs /com/google/gson/FieldNamingPolicy.html#UPPER_CAMEL_CASE [CODETERM3] instead: CODESNIPPET_JAVA1 .. details
  • Apache Camel: Covert JSON to a POJO using camel methods.. details
  • Apache Camel: Covert JSON to a POJO using camel methods.. details
  • After looking into just about every setting I could reach from ObjectMapper - DeserializationConfig, DeserializerProvider, etc, I ended up with a very messy hack in which I parse to a JSON tree, output it with a custom JsonGenerator that lower cases the field names, and then parses it back in as an object.. details
  • The problem I am facing is that our legacy service produces 'camel case to UPPER case with underscores' as json property names.. details
  • The problem I am facing is that our legacy service produces 'camel case to UPPER case with underscores' as json property names.. details
  • My problem is that our old serialization was done manually and used Pascal casing instead of Camel casing ("MyVariable" instead of "myVariable"), and Jackson does Camel casing by default.. details
  • My problem is that our old serialization was done manually and used Pascal casing instead of Camel casing ("MyVariable" instead of "myVariable"), and Jackson does Camel casing by default.. details
  • camel cased names starting with lower case "sampleFieldNameInJava") to a Json field name (i.e.. details
Summaries the opinions about org.apache.camel using topic modeling.
  • 0. html ember requirement simple key perform dataformats rest achieve converter: 4
    • I have a simple Hello World example that passes a Map to Camel and displays the values to the console via Log4J.. details
    • For those wondering why I need such a configuration, it's because I'm developing a REST webservice for ember.js (more specifically Ember Data).You would appreciate very much if you could help with any of the requirements.. details
    • Thanks a lot!.. details
    • Yes, this can be achieved with TypeConverters /type-converter.html [ You can also perform this explicitly with the dataFormats element too - format.html] Hope that helps :) .. details
  • 1. property tests real online spot confirm simple change receive key: 2
    • Thanks very much, that was spot-on.. details
    • It works pretty well in all my tests.The problem is that our real objects have some properties named like is_online.. details
  • 2. key jackson nest property propertynamingstrategy bean convention pair change objectmapper: 12
    • Thanks.. details
    • 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.. details
    • However, now some of my key,value entries will have an optional visibility that I need to put as a nested key value in my map.. details
    • How can I get Camel to marshall a Java object with nested key,value pairs?. details
    • How do I marshall nested key,value pairs into JSON with Camel and Jackson library?. details
    • Thanks!. details
    • Thanks!.. details
    • The server receives json value as: CODESNIPPET .. details
    • You are welcome -- thanks for confirming this works!.. details
    • Thanks .. details
    • To map "last_name", you have couple of options: use @JsonProperty("last_name") next to get method to rename JSON property used use a PropertyNamingStrategy (like PropertyNamingStrategy. LowerCaseWithUnderscoresStrategy ), registered with "ObjectMapper.setNamingStrategy()" to change how Bean properties are mapping JSON names Latter method makes sense if all your data comes using naming convention different from Java Bean naming convention (camel case).. details
    • EDIT: It looks like there's not a clean way to do this externally.. details
  • 3. gson response simple key follow totally isonline case equal key1: 7
    • I'm a visual learner, so a simple example would be helpful.. details
    • For example if I put the following two key,values into a demoMap: CODESNIPPET .. details
    • So, for example if I specify visibilities for key1, and key2, but not key3 I want to get JSON out that looks like this: CODESNIPPET .. details
    • Here my simple context : CODESNIPPET .. details
    • Thanks for your response.. that helped me a bit ... details
    • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of to() (something like this)?. details
    • GSON only maps them if they are named totally equal, it would be nice to have GSON convert the names to Java camel case isOnline.. details
  • 4. follow model route rest payload wso2 service content attribute mediate: 5
    • Really good, didn't know the onException !.. details
    • Here is my current applicationContext.xml: UPDATED: The following xml now works.. details
    • in this way we can smart proxy (ie content route and mediate on transport and payload) for ALL json based rest services through WSO2 with no issues This solves the problem (I think camel does it this way by default).. details
    • I have found the following setting works perfect when reading json with underscored attributes and using camelcasing in my models.. details
    • And my object model is like: CODESNIPPET .. details
  • 5. objectmapper requirement configure change confirm spot simple model receive key: 3
    • I tried changing my Map to have a value as an object i.e.,: CODESNIPPET .. details
    • Requirement #6 can be accomplished by configuring ObjectMapper in the following way: CODESNIPPET .. details
    • So far... Requirement #5 can be accomplished by configuring ObjectMapper in the following way: CODESNIPPET .. details
  • 0. case casing myvariable low upper constructor adam setting change covert: 6
    • Unfortunately this didn't helped me :-/ Any other suggestion?. details
    • Changed constructor to use Upper case as per 'HourlySalesFigures' in both the argument and constructor body, same thing again.. details
    • @adam Yes, missed it.. details
    • Apache Camel: Covert JSON to a POJO using camel methods.. details
    • After looking into just about every setting I could reach from ObjectMapper - DeserializationConfig, DeserializerProvider, etc, I ended up with a very messy hack in which I parse to a JSON tree, output it with a custom JsonGenerator that lower cases the field names, and then parses it back in as an object.. details
    • My problem is that our old serialization was done manually and used Pascal casing instead of Camel casing ("MyVariable" instead of "myVariable"), and Jackson does Camel casing by default.. details
  • 1. case low change upper gson camelcontext inside start exception applicationcontext: 8
    • I modified my ApplicationContext.xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 25; cvc-complex-type.2.4.a: Invalid content was found starting with element 'camel:dataFormats'.. details
    • Right now I just hardcoded the default visibility to "a", but will change that later to also be pulled from a properties file.. details
    • Moving these tags inside or outside of my camelContext yields the same error (just a longer list of URLs when inside the camelContext).. details
    • camel serialize json in dead letter queue.. details
    • Alternatively, you could adapt the C# side to output lower camel case {"upTime" : ... } of course.. details
    • Keep your fields properly named in Java style as lower camel case and tell Gson to use /com/google/gson/FieldNamingPolicy.html#UPPER_CAMEL_CASE [CODETERM3] instead: CODESNIPPET .. details
    • The problem I am facing is that our legacy service produces 'camel case to UPPER case with underscores' as json property names.. details
    • camel cased names starting with lower case "sampleFieldNameInJava") to a Json field name (i.e.. details
Summaries of the opinions about org.apache.camel using three algorithms (Textrank, Lexrank and Luhn) adopted from extractive summarization. Each algorithm was used once for the positive opinions and once for the negative opinions.
  • in this way we can smart proxy (ie content route and mediate on transport and payload) for ALL json based rest services through WSO2 with no issues This solves the problem (I think camel does it this way by default) .
  • I have a simple Hello World example that passes a Map to Camel and displays the values to the console via Log4J .
  • For example if I put the following two key,values into a demoMap: CODESNIPPET JAVA1 .
  • However, now some of my key,value entries will have an optional visibility that I need to put as a nested key value in my map .
  • So, for example if I specify visibilities for key1, and key2, but not key3 I want to get JSON out that looks like this: CODESNIPPET JAVA3 .
  • How can I get Camel to marshall a Java object with nested key,value pairs?.
  • Thanks for your response that helped me a bit .
  • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of to() (something like this)?.
  • You are welcome thanks for confirming this works!
  • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of to() (something like this)?.
  • in this way we can smart proxy (ie content route and mediate on transport and payload) for ALL json based rest services through WSO2 with no issues This solves the problem (I think camel does it this way by default) .
  • I have a simple Hello World example that passes a Map to Camel and displays the values to the console via Log4J .
  • And my object model is like: CODESNIPPET JAVA2 .
  • 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 .
  • However, now some of my key,value entries will have an optional visibility that I need to put as a nested key value in my map .
  • So, for example if I specify visibilities for key1, and key2, but not key3 I want to get JSON out that looks like this: CODESNIPPET JAVA3 .
  • I tried changing my Map to have a value as an object i e ,: CODESNIPPET JAVA4 .
  • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of to() (something like this)?.
  • For those wondering why I need such a configuration, it's because I'm developing a REST webservice for ember js (more specifically Ember Data) You would appreciate very much if you could help with any of the requirements .
  • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of to() (something like this)?.
  • How do I marshall nested key,value pairs into JSON with Camel and Jackson library?.
  • 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 .
  • However, now some of my key,value entries will have an optional visibility that I need to put as a nested key value in my map .
  • So, for example if I specify visibilities for key1, and key2, but not key3 I want to get JSON out that looks like this: CODESNIPPET JAVA3 .
  • How can I get Camel to marshall a Java object with nested key,value pairs?.
  • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of to() (something like this)?.
  • LowerCaseWithUnderscoresStrategy ), registered with "ObjectMapper setNamingStrategy()" to change how Bean properties are mapping JSON names Latter method makes sense if all your data comes using naming convention different from Java Bean naming convention (camel case) .
  • So far Requirement #5 can be accomplished by configuring ObjectMapper in the following way: CODESNIPPET JAVA3 .
  • For those wondering why I need such a configuration, it's because I'm developing a REST webservice for ember js (more specifically Ember Data) You would appreciate very much if you could help with any of the requirements .
  • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of to() (something like this)?.
  • Keep your fields properly named in Java style as lower camel case and tell Gson to use com google gson FieldNamingPolicy html#UPPER CAMEL CASE FieldNamingPolicy.UPPER_CAMEL_CASE instead: CODESNIPPET JAVA1 .
  • Alternatively, you could adapt the C# side to output lower camel case {"upTime" : ... } of course .
  • Unfortunately this didn't helped me : Any other suggestion?.
  • I modified my ApplicationContext xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org springframework beans factory xml XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource applicationContext xml is invalid; nested exception is org xml sax SAXParseException; lineNumber: 30; columnNumber: 25; cvc complex type 2 4 a: Invalid content was found starting with element 'camel:dataFormats' .
  • Moving these tags inside or outside of my camelContext yields the same error (just a longer list of URLs when inside the camelContext) .
  • Apache Camel: Covert JSON to a POJO using camel methods .
  • camel serialize json in dead letter queue .
  • The problem I am facing is that our legacy service produces 'camel case to UPPER case with underscores' as json property names .
  • After looking into just about every setting I could reach from ObjectMapper DeserializationConfig, DeserializerProvider, etc, I ended up with a very messy hack in which I parse to a JSON tree, output it with a custom JsonGenerator that lower cases the field names, and then parses it back in as an object .
  • Apache Camel: Covert JSON to a POJO using camel methods .
  • Keep your fields properly named in Java style as lower camel case and tell Gson to use com google gson FieldNamingPolicy html#UPPER CAMEL CASE FieldNamingPolicy.UPPER_CAMEL_CASE instead: CODESNIPPET JAVA1 .
  • Alternatively, you could adapt the C# side to output lower camel case {"upTime" : ... } of course .
  • camel cased names starting with lower case "sampleFieldNameInJava") to a Json field name (i e .
  • I modified my ApplicationContext xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org springframework beans factory xml XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource applicationContext xml is invalid; nested exception is org xml sax SAXParseException; lineNumber: 30; columnNumber: 25; cvc complex type 2 4 a: Invalid content was found starting with element 'camel:dataFormats' .
  • My problem is that our old serialization was done manually and used Pascal casing instead of Camel casing ("MyVariable" instead of "myVariable"), and Jackson does Camel casing by default .
  • Right now I just hardcoded the default visibility to "a", but will change that later to also be pulled from a properties file .
  • Apache Camel: Covert JSON to a POJO using camel methods .
  • The problem I am facing is that our legacy service produces 'camel case to UPPER case with underscores' as json property names .
  • After looking into just about every setting I could reach from ObjectMapper DeserializationConfig, DeserializerProvider, etc, I ended up with a very messy hack in which I parse to a JSON tree, output it with a custom JsonGenerator that lower cases the field names, and then parses it back in as an object .
  • Apache Camel: Covert JSON to a POJO using camel methods .
  • Keep your fields properly named in Java style as lower camel case and tell Gson to use com google gson FieldNamingPolicy html#UPPER CAMEL CASE FieldNamingPolicy.UPPER_CAMEL_CASE instead: CODESNIPPET JAVA1 .
  • Changed constructor to use Upper case as per 'HourlySalesFigures' in both the argument and constructor body, same thing again .
  • camel cased names starting with lower case "sampleFieldNameInJava") to a Json field name (i e .
  • I modified my ApplicationContext xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org springframework beans factory xml XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource applicationContext xml is invalid; nested exception is org xml sax SAXParseException; lineNumber: 30; columnNumber: 25; cvc complex type 2 4 a: Invalid content was found starting with element 'camel:dataFormats' .
  • Moving these tags inside or outside of my camelContext yields the same error (just a longer list of URLs when inside the camelContext) .
  • My problem is that our old serialization was done manually and used Pascal casing instead of Camel casing ("MyVariable" instead of "myVariable"), and Jackson does Camel casing by default .
  • Apache Camel: Covert JSON to a POJO using camel methods .
  • The problem I am facing is that our legacy service produces 'camel case to UPPER case with underscores' as json property names .
  • After looking into just about every setting I could reach from ObjectMapper DeserializationConfig, DeserializerProvider, etc, I ended up with a very messy hack in which I parse to a JSON tree, output it with a custom JsonGenerator that lower cases the field names, and then parses it back in as an object .
  • Apache Camel: Covert JSON to a POJO using camel methods .
Summaries of the opinions about org.apache.camel using Opinosis, an abstractive summarizer of opinions..
  • a pojo using some method ahead of to (/( )/) (/( something like this )/) ? .
  • nested key , value pairs .
  • my object model is like :/: codesnippet java2 .
  • apache camel :/: covert json to a pojo using camel methods .
Summaries of the opinions about org.apache.camel using contrastive viewpoints. Each entry contains a pair of positive and negative sentences that are most likely discussing about similar API features.
Summaries of opinions about based on specific API aspects, such as, performance, usability, etc. The 'Overview' page provides an overview of the aspects detected in the opinions. The 'Trend' page shows the distribution of polarity over time for each aspect. The 'Positive Opinions' page groups positive opinions by the detected aspects. The 'Contrastive By Aspect' page shows paris of contrastive opinions under each aspect (where found).
Features:
  • Really good, didn't know the onException !.
  • @adam Yes, missed it.
Onlysentiment:
  • Thanks.
  • N/A
Performance:
  • N/A
  • My problem is that our old serialization was done manually and used Pascal casing instead of Camel casing ("MyVariable" instead of "myVariable"), and Jackson does Camel casing by default.
Bug:
  • in this way we can smart proxy (ie content route and mediate on transport and payload) for ALL json based rest services through WSO2 with no issues This solves the problem (I think camel does it this way by default).
  • I modified my ApplicationContext.xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 25; cvc-complex-type.2.4.a: Invalid content was found starting with element 'camel:dataFormats'.
Usability:
  • How can I get Camel to marshall a Java object with nested key,value pairs?
  • Unfortunately this didn't helped me :-/ Any other suggestion?
  • Onlysentiment: 9
    1. general: 9
  • Features: 7
    1. general: 7
      • Really good, didn't know the onException !.. details
      • However, now some of my key,value entries will have an optional visibility that I need to put as a nested key value in my map.. details
      • For example if I put the following two key,values into a demoMap: CODESNIPPET_JAVA1 .. details
      • I tried changing my Map to have a value as an object i.e.,: CODESNIPPET_JAVA4 .. details
      • Requirement #6 can be accomplished by configuring CODETERM12 in the following way: CODESNIPPET_JAVA4 .. details
      • So far... Requirement #5 can be accomplished by configuring CODETERM10 in the following way: CODESNIPPET_JAVA3 .. details
      • The server receives json value as: CODESNIPPET_JAVA1 .. details
  • Bug: 1
    1. general: 1
      • in this way we can smart proxy (ie content route and mediate on transport and payload) for ALL json based rest services through WSO2 with no issues This solves the problem (I think camel does it this way by default).. details
  • Usability: 22
    1. properties: 1
      • It works pretty well in all my tests.The problem is that our real objects have some properties named like is_online.. details
    2. object: 3
      • How can I get Camel to marshall a Java object with nested key,value pairs?. details
      • And my object model is like: CODESNIPPET_JAVA2 .. details
      • And my object model is like: CODESNIPPET_JAVA2 .. details
    3. rest: 1
      • For those wondering why I need such a configuration, it's because I'm developing a REST webservice for URL_http://emberjs.com/ [ember.js] (more specifically Ember Data).You would appreciate very much if you could help with any of the requirements.. details
    4. element: 1
      • Yes, this can be achieved with TypeConverters URL_http://camel.apache.org /type-converter.html [ URL_http://camel.apache.org/type-converter.html ] You can also perform this explicitly with the dataFormats element too URL_http://camel.apache.org/data-format.html [ URL_http://camel.apache.org/data - format.html] Hope that helps :) .. details
    5. json: 8
      • So, for example if I specify visibilities for key1, and key2, but not key3 I want to get JSON out that looks like this: CODESNIPPET_JAVA3 .. details
      • How do I marshall nested key,value pairs into JSON with Camel and Jackson library?. details
      • 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.. details
      • in this way we can smart proxy (ie content route and mediate on transport and payload) for ALL json based rest services through WSO2 with no issues This solves the problem (I think camel does it this way by default).. details
      • I have found the following setting works perfect when reading json with underscored attributes and using camelcasing in my models.. details
      • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of CODETERM1 (something like this)?. details
      • Now the response will be a JSON, is there any way I get this JSON directly into a POJO using some method ahead of CODETERM1 (something like this)?. details
      • To map "last_name", you have couple of options: use CODETERM2 next to get method to rename JSON property used use a CODETERM3 (like CODETERM4 ), registered with "ObjectMapper.setNamingStrategy()" to change how Bean properties are mapping JSON names Latter method makes sense if all your data comes using naming convention different from Java Bean naming convention (camel case).. details
    6. general: 7
      • I'm a visual learner, so a simple example would be helpful.. details
      • I have a simple Hello World example that passes a Map to Camel and displays the values to the console via Log4J.. details
      • Here is my current applicationContext.xml: UPDATED: The following xml now works.. details
      • Here my simple context : CODESNIPPET_JAVA1 .. details
      • Thanks for your response.. that helped me a bit ... details
      • You are welcome -- thanks for confirming this works!.. details
      • EDIT: It looks like there's not a clean way to do this externally.. details
    7. gson: 1
      • GSON only maps them if they are named totally equal, it would be nice to have GSON convert the names to Java camel case isOnline.. details
  • Performance: 1
    1. general: 1
      • My problem is that our old serialization was done manually and used Pascal casing instead of Camel casing ("MyVariable" instead of "myVariable"), and Jackson does Camel casing by default.. details
  • Features: 3
    1. general: 3
      • @adam Yes, missed it.. details
      • camel serialize json in dead letter queue.. details
      • camel cased names starting with lower case "sampleFieldNameInJava") to a Json field name (i.e.. details
  • Bug: 3
    1. general: 3
      • I modified my ApplicationContext.xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 25; cvc-complex-type.2.4.a: Invalid content was found starting with element 'camel:dataFormats'.. details
      • Moving these tags inside or outside of my camelContext yields the same error (just a longer list of URLs when inside the camelContext).. details
      • The problem I am facing is that our legacy service produces 'camel case to UPPER case with underscores' as json property names.. details
  • Usability: 11
    1. exception: 1
      • I modified my ApplicationContext.xml to add these changes( also updated the xml above), and now I get the following error: Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 30 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 25; cvc-complex-type.2.4.a: Invalid content was found starting with element 'camel:dataFormats'.. details
    2. jackson: 1
      • My problem is that our old serialization was done manually and used Pascal casing instead of Camel casing ("MyVariable" instead of "myVariable"), and Jackson does Camel casing by default.. details
    3. gson: 1
      • Keep your fields properly named in Java style as lower camel case and tell Gson to use URL_http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs /com/google/gson/FieldNamingPolicy.html#UPPER_CAMEL_CASE [CODETERM3] instead: CODESNIPPET_JAVA1 .. details
    4. json: 4
      • Apache Camel: Covert JSON to a POJO using camel methods.. details
      • Apache Camel: Covert JSON to a POJO using camel methods.. details
      • After looking into just about every setting I could reach from ObjectMapper - DeserializationConfig, DeserializerProvider, etc, I ended up with a very messy hack in which I parse to a JSON tree, output it with a custom JsonGenerator that lower cases the field names, and then parses it back in as an object.. details
      • The problem I am facing is that our legacy service produces 'camel case to UPPER case with underscores' as json property names.. details
    5. constructor: 1
      • Changed constructor to use Upper case as per 'HourlySalesFigures' in both the argument and constructor body, same thing again.. details
    6. output: 1
      • Alternatively, you could adapt the C# side to output lower camel case CODETERM4 of course.. details
    7. general: 1
      • Unfortunately this didn't helped me :-/ Any other suggestion?. details
    8. properties: 1
      • Right now I just hardcoded the default visibility to "a", but will change that later to also be pulled from a properties file.. details