Is it possible to change elements in json request dynamically ?
Issue
- REST DSL how do I set the property naming strategy in the rest configuration dataformat section of my camel context
- My com.mycompany.Test pojo has a field name firstName with getter and setter. But my json has first_name.
- Following is the stacktrace.
org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: .firstname on null due to: org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: firstname on null due to: org.apache.camel.component.bean.MethodNotFoundException: Method with name: firstname not found on bean: com.mycompany.Test@6494c9c0 of type: com.mycompany.Test. Exchange[Message: com.mycompany.TestRequest@6494c9c0] at org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:117) [camel-core-2.15.1.redhat-621084.jar:2.15.1.redhat-621084]
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.