Re: Camel Metrics during Exception

2015-10-27 Thread vivekrao001
If we don't stop the timer, does the thread will get stuck and result in memory leaks? Could somebody please help. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Metrics-during-Exception-tp5772948p5773119.html Sent from the Camel - Users mailing list archive at

Camel Metrics during Exception

2015-10-21 Thread vivekrao001
Hi, I have a question regarding the metrics, for the following route : from("direct:in") .to("metrics:timer:simple.timer?action=start") .to("*direct:calculate*") .to("metrics:timer:simple.timer?action=stop"); If the *direct:calculate* raises an exception, what would be the

Camel SQL Using JNDI and Connecting to Schema other than default Schema

2015-08-20 Thread vivekrao001
Hi, I successfully configured sql component using the following config. bean id=sql class=org.apache.camel.component.sql.SqlComponent property name=dataSource ref=dataSource / /bean bean id=dataSource

Re: Camel SQL Using JNDI and Connecting to Schema other than default Schema

2015-08-20 Thread vivekrao001
Is the above problem is a bug or I'm doing it wrong? Thanks, Vivek. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SQL-Using-JNDI-and-Connecting-to-Schema-other-than-default-Schema-tp5770854p5770860.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Concatenating input and output for an endpoint

2015-07-31 Thread vivekrao001
Hi, Thanks For the response, the particular strategy I'm looking for is to send the actual payload (before splitting) to the each split route, so that I can do some updates at all the splitted routes in parallel, instead of aggregating all the routes and waiting till all the sub-splitted routes

Re: Camel Concatenating input and output for an endpoint

2015-07-23 Thread vivekrao001
Putting the first result in the header is the only way? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Concatenating-input-and-output-for-an-endpoint-tp5769829p5769845.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel Concatenating input and output for an endpoint

2015-07-23 Thread vivekrao001
from(direct:readsql).to(sql:select * from orders where processed = false).split(body()) .parallelProcessing().to(direct:split); from(direct:split).to(sql:select * from orders_address where id= :#${body[ID]}).log(Message :${body}); Is there a way to concatenate

Re: Camel get values from body after split

2015-07-15 Thread vivekrao001
NVM.. this worked from(direct:split).routeId(SplitParallel) .log(Split Message :${body}).log(Split Message :*${body[ID]}*) .end(); -- View this message in context:

Camel Insert after ready Fixed length message from queue

2015-07-15 Thread vivekrao001
Hi, I'm successfully reading queue and parsing it into bean using bindy. But next I need to insert in to db. What ever the expression I use, it giving some error. Could some body help in forming the expression for the value parameter. - BodyType

Camel get values from body after split

2015-07-15 Thread vivekrao001
Hi, I'm getting multiple records using sql and splitting them paralleling for next route. But not able to get the values from the splitted record. from(sql:select * from orders where processed = false) .log(Query Message :${body}).split(body())

Re: Camel Insert after ready Fixed length message from queue

2015-07-15 Thread vivekrao001
Hi, Thank You, Its working now. I tried that option, may be I made a typo. Thanks, Vivek. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Insert-to-DB-after-reading-Fixed-length-message-from-queue-tp5769316p5769363.html Sent from the Camel - Users mailing list

Camel Bindy bean as Parameter in Spring Jms Component using @Consume

2015-07-14 Thread vivekrao001
@Consume(uri = jms:queue:TestQueueOne?concurrentConsumers=10) public String onMyMessage1(Order order) { Some logic } -- Bean Definition is as follows @FixedLengthRecord(length = 4) public class Order implements Serializable { @DataField(pos = 1, length = 2) private int

Re: Camel JCR examples?

2014-06-03 Thread vivekrao001
Hi, Thanks for the quick reply, I was able to create repository in spring config. but was not able to copy the file from repository to local file. could you please look at the below code. -- bean id=repository class=org.apache.jackrabbit.rmi.repository.URLRemoteRepository

Re: Camel JCR examples?

2014-06-03 Thread vivekrao001
Hi Gregor, I'm trying to copy all the files (nt:file) under a node. And i'm not waiting for lsiterner to listen. I need to copy all the files when ever needed. I couldn't get the exact syntax anywhere. It would be great help, if you give me some direction. I'm trying with the following syntax

Re: Camel JCR examples?

2014-06-02 Thread vivekrao001
Hi, I'm trying to retrieve the files. I need to write a batch which just retrieves the files at regular intervals. I'm trying something like this. from (jcr://admin:admin@localhost:8080/jackrabbit-webapp-2.6.0/repository/default/b?recursive=truenoop=true).to(file:\\tmp\\out); I'm getting

Re: Camel JCR examples?

2014-05-28 Thread vivekrao001
Did you get any working example? If so could you please post the solution. Appreciate you help. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JCR-examples-tp5746406p5751679.html Sent from the Camel - Users mailing list archive at Nabble.com.