Hi, am novice to Apache camel, I want to write the Standalone Camel class,
just to called the processor for this i had written the following class and
expect it should print the message on the console but its not working.
can somebody help in this, how can i achieve it, and what am missing, the
class written is as follow
import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;
public class CamelGroovyIntegrationTest {
public static void main (String args[])throws Exception {
CamelContext context = new DefaultCamelContext();
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from("direct:start").process(new Processor() {
@Override
public void process(Exchange exchange)
throws Exception {
System.out.println("control in
processor");
}
});
}
});
context.start();
Thread.sleep(10000);
context.stop();
}
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-called-the-processor-tp5737769.html
Sent from the Camel - Users mailing list archive at Nabble.com.