Re: how to set null body

2014-03-28 Thread Dharmendra Patel
Hi there, try replacing simple with constant. from() ... ... .setBody(*constant*(null)).to(http://example.com/id/1) .process(new MyProcessor()).to(mock:target); On Fri, Mar 28, 2014 at 2:29 PM, Olaf omgolafg...@gmail.com wrote: Hello, at some point in my route I need to make a GET request.

Re: Camel SQL compnent - Return

2014-01-27 Thread Dharmendra Patel
Hi There, For select operations, the returned result is an instance of ListMapString, Object type, as returned by the JdbcTemplate.queryForList() method. For update operations, the result is the number of updated rows, returned as an Integer. In a processor you can access them as below:

Re: Archive files using apache camel

2013-12-12 Thread Dharmendra Patel
Hi There, In camel there is a camel-zipfile component. But i think it works for single file only. http://camel.apache.org/zip-file-dataformat.html I am not sure but i think camel-exec component may work in your case. http://camel.apache.org/exec.html

Re: Read Multiple files or using concurrent consumers in one route

2013-12-10 Thread Dharmendra Patel
My bad, I recalled it after sending the reply. Please accept my apology. On Tue, Dec 10, 2013 at 1:58 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Tue, Dec 10, 2013 at 9:25 AM, talk2patel86 dharmendra.k.pa...@gmail.com wrote: I believe you are using camel file2 component. In that

Re: Problem with exception handler (onException) on Camel 2.12.X routes.

2013-12-10 Thread Dharmendra Patel
Hi, Can you please share the xml route. On Tue, Dec 10, 2013 at 6:30 PM, jguerra jg.gue...@gmail.com wrote: Hi, I switched /transaced and onException with no luck!. Camel still doesn't catch any exception. I am tried with java.lang.Exception and java.sql.SQLException. The funniest part is

Re: Message Transformation for JSON

2013-12-08 Thread Dharmendra Patel
Hi there, Can you please clarify the source and target data format. On Mon, Dec 9, 2013 at 3:12 AM, madusanka madusankabalasoor...@gmail.comwrote: Hi, We can transform the XML format using XSLT. Likewise is there a way to transform JSON format? -- View this message in context:

Re: [bug:sql] SQL Component cannot change SQL_ROW_COUNT header value

2013-12-05 Thread Dharmendra Patel
Hi There, I think it is a bug. in org.apache.camel.component.sql.SqlProducer class code highlighted in red(line no 120) could be shifted to line no 92(highlighted in green). else { boolean isResultSet = ps.execute(); if (isResultSet) { * // preserve

Re: Problem with consuming from endpoint

2013-11-26 Thread Dharmendra Patel
replaceproducer.sendBody(direct:step1, test message); with producer.asyncSendBody(direct:step1, test message); and you don't need to start consumer manually( consumer.start();) as camel does it automatically when ConsumerTemplate is created. -- Forwarded message -- From: