camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajesh_h <>
Subject Re: CamelContext resume does not reactivate the route
Date Mon, 11 Mar 2013 04:29:41 GMT
Here is the route-psp1

// Processing one csv file at a time
	        .when(simple("${file:ext} == 'csv'")).to("direct:csv")
		.otherwise().log("Ignoring unknown file ${file:name}");

// And here is route-psp2, which streams 1000 lines at a time and processes
			.process(new LogFileInitializer())				// Initialize the File Appender
			.log("Processing file ${file:name}")
			.beanRef("pspWorkingContext", "initialize")		// Initialize the working
			.split().tokenize("\n", 1000).streaming()		// Stream 1000 lines at a time
				.log("Stream the next 1000 lines")
			.log("Processed file ${file:name}")				// Done processing the file.
				.when().method("pspWorkingContext", "stopRoute") 	// If the route was
stopped, move to retry location.
					.log("Moving file ${file:name} to retry location as r-${file:name}")
			.beanRef("pspWorkingContext", "done")

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

View raw message