'How to convert json to java object during camel routing
I am using camel and sending json string via activemq and want to persist the received object in database using ibatis. I would like to know how to convert json to java object during camel route.
from("jms:queue:TestQueue").bean(new SomeBean()) .to("ibatis:User.insert");
Any suggestions would be useful in converting json to java object or directly passing json to ibatis.
thanks Lokesh
Solution 1:[1]
I think yo are getting default values due to this last bit: .bean(new SomeBean())
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | KingAndrew |