Apache Camel Basic exam on JavaBlackBelt

2010-03-17 Thread hekonsek
Hi My name is Henryk. I wrote here as a JavaBlackBelt administrator (http://javablackbelt.com). JBB is a Java certification community focused on creating and passing (or failing :P) Java-related exams. I want to create a "Camel - Basic" exam. It's purpose is to test the knowledge of basic usage

Re: Camel randomid generation..

2014-04-08 Thread hekonsek
Hi, You can't use regular Java in a simple expression, as the latter is supposed to be simple :) . Consider using Groovy expressions [1] instead. Cheers. [1] http://camel.apache.org/groovy.html -- View this message in context: http://camel.465427.n5.nabble.com/Camel-randomid-generation-tp574

Re: Camel with ActiveMQ

2014-04-09 Thread hekonsek
Hi Anuj, > 1. Does camel need ActiveMQ broker to run or it can work without ActiveMQ > also ? ActiveMQ is only one among many [1] components supported by Camel. So yes, you can run Camel without AMQ. > 2. What are the possible use cases where I can use camel with ActiveMQ ? Well, actually whene

Re: Stopped Routes

2012-08-22 Thread hekonsek
Hi Ritu, > how to will I configure XML so that route will only run once Access CamelContext in Processor and close the route via CamelContext#stopRoute(). from("direct:stopRoute"). process(new Processor() { @Override public void process(Exchange exchange) throws Exception { Strin

Re: Dinamyc SQL with arguments

2013-03-12 Thread hekonsek
Hi Juan, You can use SQL component [1] with conjunction with the Recipient List EIP [2] to achieve this. from("direct:sql").recipientList(header("SQL_QUERY"); ... producerTemplate.sendBodyAndHeader("direct:sql", queryParams, "SQL_QUERY", Collections.singletonList("sql:insert into foo values (#,#)