camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhimukh <writedeshm...@live.com>
Subject Re: How to called the processor
Date Thu, 22 Aug 2013 13:51:43 GMT
on the blog "http://saltnlight5.blogspot.se" there is an example where route
is created as follow

from("timer://timer1?period=1000")
        .process(new Processor() {
            public void process(Exchange msg) {
                LOG.info("Processing {}", msg);
            }
        });



*can i able to do as below, if not then how can i acheive it ?*

from("direct:start").process(new Processor() {
					
					@Override
					public void process(Exchange exchange) throws Exception {
					System.out.println("control in processor");
						
					}
				});




--
View this message in context: http://camel.465427.n5.nabble.com/How-to-called-the-processor-tp5737769p5737774.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message