how to convert JSONArray to List of Object using camel-jackson

The problem is not in your code but in your json: {“Compemployes”:[{“id”:1001,”name”:”jhon”}, {“id”:1002,”name”:”jhon”}]} this represents an object which contains a property Compemployes which is a list of Employee. In that case you should create that object like: class EmployeList{ private List<Employe> compemployes; (with getter an setter) } and to deserialize the json simply do: EmployeList … Read more

Apache Camel : “direct:start” endpoint – what does it mean?

The “direct:start” above is simply saying that the route starts with a Direct Component named “start”. The direct endpoint provides synchronous invocation of a route. If you want to send an Exchange to the direct:start endpoint you would create a ProducerTemplate and use the various send methods. ProducerTemplate template = context.createProducerTemplate(); template.sendBody(“direct:start”, “This is a … Read more

Java Messaging : Difference between ActiveMQ, Mule, ServiceMix and Camel

ActiveMQ is a message broker which implements the JMS API and supports a number of cross language clients and network protocols. It lets you implement queues or topics and write listeners or subscribers to respond to queue events. Mule and ServiceMix are open source ESB (enterprise service bus). An ESB has capabilities beyond JMS: queuing … Read more