Lokesh Raj Urs
Lokesh Raj Urs

Reputation: 361

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

Upvotes: 1

Views: 16168

Answers (1)

KingAndrew
KingAndrew

Reputation: 1165

I think yo are getting default values due to this last bit: .bean(new SomeBean())

Upvotes: 0

Related Questions