Error while building Camel source code

2016-01-21 Thread umang
Getting following error while running :mvn clean install -Dtest=false An Ant BuildException has occured: java.lang.NoClassDefFoundError: org/apache/xml/serializer/ExtendedContentHandler: org.apache.xml.serializer.ExtendedContentHandler Which dependency is creating problem? Searched a bit on googl

Camel Thread Id changing when calling http component

2015-05-23 Thread umang
My route is like this: from(rabbitmq). to(redisLockerProcessor). to(processor1). to(ahc://http:).to(processor2) .to(redisLockReleaseProcessor) I am using redisson library which stores thread id which took the lock in redis. But in redisLockReleaseProcessor it is throwing exception that thread id

Re: Camel elasticsearch bulk api not working

2015-05-18 Thread umang
Got it working now. Re read the documentation and found that we have to send List> for bulk index and Map for single index. For single index automatically the request was getting converted to Map. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-elasticsearch-bulk-api-n

Camel elasticsearch bulk api not working

2015-05-17 Thread umang
Hi, I was experimenting with camel elasticsearch component. I was sending following request to elasticsearch with INDEX operation. It is working as expected. { "entityId":"test", "userId":"test", "timestamp":"2014-12-06 15:59:48", "xyz":"test", } Now I changed the about request to a Lis

Use different aggregation strategy in camel depending on some header

2014-12-16 Thread umang
Hi, What is the correct way to use different aggregation strategy in camel depending on some header? Is the following way fine or is there any other cleaner approach to do this? from("direct:start") .choice() .when(header("foo").equalTo("bar")) .aggregate(header("id"), new B

Re: Apache camel and kafka integration

2014-09-03 Thread umang
illemjiang > Weibo: 姜宁willem > > > > On September 4, 2014 at 2:12:55 AM, umang ([hidden email] > <http://user/SendEmail.jtp?type=node&node=5756036&i=0>) wrote: > > > I was trying to test camel integration with kafka as explained here > > (https:/

Apache camel and kafka integration

2014-09-03 Thread umang
I was trying to test camel integration with kafka as explained here (https://github.com/ipolyzos/camel-kafka/wiki) Following is my code public class KafkaTest { public static void main(String args[]) throws Exception { CamelContext context = new DefaultCamelContext();