public class Test extends RouteBuilder {
private volatile String tag = null; @Override public void configure() throws Exception { from("http://url/a.csv") .filter(header("Tag").isNotNull()) .filter(header("Tag").isNotEqualTo(tag)) .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { String s = String.valueOf(exchange.getIn().getHeader( "Tag")); etag = new String(s); System.out.println(tag); } }).to("file://c:/test/"); } } However the comparison always pick up the tag value as null. Can anybody help -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-Java-DSL-filter-tp5713919.html Sent from the Camel - Users mailing list archive at Nabble.com.