camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murari Raghavan <murari.ragha...@gmail.com>
Subject Cannot invoke Otherwise method due to the splitter
Date Wed, 22 Aug 2012 04:44:03 GMT
Hello:

Here is my route. The otherwise() call cannot be invoked because of the
splitter. Is there a way to bypass this issue? 

from(inboundroute)
.choice()
.when(header("CamelFileName").regex("^DDSBATCHSTATUS.*(xml)$"))
	.to(someroute)
	.split().method(DDSResponseSplitService.class, "splitStatusResponse")
	.process(new Processor() {
	public void process(Exchange exchange) throws Exception {
	// do something
	}
	})
	.to(outboundroute)
.otherwise() <-------- This is not working because of the splitter
	.to(archive);

Thanks,
Murari Raghavan



--
View this message in context: http://camel.465427.n5.nabble.com/Cannot-invoke-Otherwise-method-due-to-the-splitter-tp5717811.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message