camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kondalarv <>
Subject Content Based Router : Java DSL is not working
Date Mon, 25 May 2015 07:33:28 GMT
I have choice with many options, and using java operation for conditions. 
The route is going to otherwise() option always and checckFilePattern()
method is not executing.

		 .log(LoggingLevel.INFO, FileWatchDSLUtil.getFileLogPattern())			 
		 	.otherwise().log("File Patten is not Matched. ${file:absolute.path}")
		 .log("End Processing Route");

private static Predicate checckFilePattern(String fileName){"checckFilePattern==> File Name : {}", fileName);
	boolean flag = false;
	if(fileName.endsWith("txt")) flag= true;
	Predicate predicate =  PredicateBuilder.constant(flag);"checckFilePattern==> predicate: {}", predicate);
	return predicate;

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

View raw message