camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhimukh <>
Subject How to called the processor
Date Thu, 22 Aug 2013 13:26:33 GMT
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() {
			public void configure() throws Exception {
				from("direct:start").process(new Processor() {
					public void process(Exchange exchange) throws Exception {
					System.out.println("control in processor");

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message