Camel Metrics

2016-09-06 Thread SaurabhNayar
I have incorporated Camel Statistics in my project. And they are awesome. I am trying to capture custom statistics for idempotent Consumer component like below:.to("metrics:timer:idempotentTimer?action=start") .idempotentConsumer(simple("${body.id}"), jdbcMessageIdRe

Re: statement.maxRows not working as expected camel jdbc

2016-01-06 Thread SaurabhNayar
Thats wired. You can try readSize as well. Regards, Saurabh Nayar -- View this message in context: http://camel.465427.n5.nabble.com/statement-maxRows-not-working-as-expected-camel-jdbc-tp5775898p5775934.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: entity manager is injected as null in a camel bean but jpa: endpoint works fine

2016-01-05 Thread SaurabhNayar
The EntityManager will not automatically join the transaction by using @Transactional annotation. You will have to write your transaction management code - and make entity manager participate in the transaction. Kind of beats the purpose of using Camel - if you have to take all that pain. -- Vi

Re: JPA consumer reconnection

2016-01-05 Thread SaurabhNayar
That's not good from c3p0. You can try a different connection pool altogether. Apache DBCP is compatible with Hibernate http://commons.apache.org/proper/commons-dbcp/ Here are some more details on Hibernate connection pooling: http://www.informit.com/articles/article.aspx?p=353736&seqNum=4 --

Re: Camel SSH no password

2016-01-04 Thread SaurabhNayar
Please send the details for the error. Tough to figure out anything from the details that were mentioned. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SSH-no-password-tp5775592p5775778.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: entity manager is injected as null in a camel bean but jpa: endpoint works fine

2016-01-04 Thread SaurabhNayar
Be aware of the fact that the entity manager that is getting imported is a Spring resource and may not be present in Camel Registry. You may have tough time joining the existing Camel transactions - if you have transactions. Don't know your business requirements - but better to use Camel JPA comp

Re: JPA consumer reconnection

2016-01-04 Thread SaurabhNayar
Please refer to: http://www.mchange.com/projects/c3p0/index.html#configuring_connection_testing You can use: /idleConnectionTestPeriod preferredTestQuery/ parameters to make the c3p0 connection pool reconnect wit