Camel Bean binding

2016-04-20 Thread VinothKR
Hi, I have a custom log formatter and want to call that through Camel. LogFormat format = new LogFormat("identity", "component", "subcomponent"); FilterLogger logger = new UniversalFilterLogger(format); logger.debug("testHello", "testing"); //this debug method internally calls log4j logger.debug

Re: Camel Http Component

2016-04-18 Thread VinothKR
I have solved the mentioned issue using http component and Rest @RequestBody, *Route:* ${body} application/json; charset=UTF-8 ${body} *My service will be like,* @RequestMapping(value="/service",consumes="application/json", method = {RequestMethod.POST, RequestMethod.GET}) public

Camel Http Component

2016-04-15 Thread VinothKR
Hi Team, I need to pass a Java model object to rest webservice using camel http component. Please provide me some pointers on how to achieve it. something in the route like, and since no other way is available to add dynamic url parameters we need to pass it through set headers like,

Re: Camel Hbase

2016-04-13 Thread VinothKR
I tried exploring the code and what I found was, The HBaseData from mappingStrategy is not having column name, column family details in HRow CellMappingStrategy mappingStrategy = endpoint.getCellMappingStrategyFactory().getStrategy(exchange.getIn()); HBaseData data =

Camel Hbase

2016-04-12 Thread VinothKR
Hi Team, I'm using Camel Hbase component to put data into remote hbase but data is getting inserted with value as null. *Route*: 001 54321 *Data stored in table* 001 column=emp:empId, timestamp=1460498530077, value= *Camel Hbase version*: 2.13.2 The exchange headers

Re: Camel route set map object in body

2016-04-10 Thread VinothKR
Hi Ranx, Thanks. I was able to send a Map object to the body using bean. Converter class: public Map myConverter(String toDisplay) { logger.debug("Invoking my converter for type "+toDisplay.getClass().getName()+" toDisplay "+toDisplay);

Re: Camel route set map object in body

2016-04-10 Thread VinothKR
Hi Ranx, Thanks for the response. I will not be able to pass any object type other string to setBody or simpleExpression methods. I just want to pass a dynamic value to the route. The message i'm getting is, Message History

Camel route set map object in body

2016-04-09 Thread VinothKR
Hi, I'm accessing a route through both producertemplate and a QuartzScheduler. *Route:* select * from table where empId=${in.body.EmpId} *I'm able to successfully pass employee id using producer template like below,* Map bodyMap = new HashMap();

Re: Camel Hive Issue

2016-04-09 Thread VinothKR
Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Hive-Issue-tp5780522p5780842.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Hive Issue

2016-04-06 Thread VinothKR
I was able to make it work with a older version of camel 2.13.2. But with the 2.16.1 version it is throwing this issue. Ideally I would be happy to upgrade to a newer version of Camel if this issue could be addressed using any higher version, instead of reverting back to a previous one. -- View

Re: Camel Hive Issue

2016-04-06 Thread VinothKR
I was able to make it work with a older version of camel 2.13.2. But with the 2.16.1 version it is throwing this issue. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Hive-Issue-tp5780522p5780613.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Hive Issue

2016-04-06 Thread VinothKR
It is camel 2.16.1 version -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Hive-Issue-tp5780522p5780612.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel Hive Issue

2016-04-05 Thread VinothKR
Hi, I was trying to connect to hive through camel using jdbc and got IllegalMonitorStateException. In exchange i was able to see the data fetched from hive table but error was thrown when JDBCProducer tried to close the result set. *Logs:* Message History