I dumped the route as XML from within VisualVM and it appears that my *filter() * is encompassing the remainder of the route, instead of just the *wireTap()* portion. So when I set *mirrorEnabled = false*, nothing gets routed to the intended destinations.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <route startupOrder="100" customId="true" id="ROUTE_ID_RAW_CQMS_EVENTS" xmlns="http://camel.apache.org/schema/spring"> <from uri="netty:udp://dloco-1.mission.net:2030?serverPipelineFactory=#CQMS_SERVER_PIPELINE_FACTORY_ROUTE_ID_RAW_CQMS_EVENTS&keepAlive=true&sync=true&orderedThreadPoolExecutor=false&receiveBufferSize=4110592&allowDefaultCodec=false&disconnectOnNoReply=false&receiveBufferSizePredictor=8192"/> <setProperty propertyName="CamelCharsetName" id="setProperty1"> <expressionDefinition>iso-8859-1</expressionDefinition> </setProperty> <threads poolSize="7" maxPoolSize="14" threadName="threads_ROUTE_ID_RAW_CQMS_EVENTS" callerRunsWhenRejected="true" id="threads1"> * <filter id="filter1"> <method method="isMirrorEnabled">com.mission.RouteManager$MirrorBean</method> <wireTap uri="netty:udp://devserver-09.mission.net:11111?clientPipelineFactory=#CQMS_CLIENT_PIPELINE_FACTORY_ROUTE_ID_RAW_CQMS_EVENTS&sync=false&sendBufferSize=4194304&allowDefaultCodec=false&disconnectOnNoReply=false" customId="true" id="ROUTE_ID_RAW_CQMS_EVENTS_MIRROR"/> <to uri="log:com.mission.BACKUP_FILE1?level=INFO" id="to1"/> <to uri="log:com.mission.THROUGHPUT_FILE1?level=INFO&groupInterval=30000&groupDelay=1000&groupActiveOnly=false" id="to2"/> <to uri="seda:SEDA_MAIN_100" id="to3"/> <to uri="seda:SEDA_ACK_100" customId="true" id="ROUTE_ID_RAW_CQMS_EVENTS_TO_FIRST_URIS"/> <setProperty propertyName="CamelCharsetName" id="setProperty2"> <expressionDefinition>iso-8859-1</expressionDefinition> </setProperty> </filter>* </threads> </route> -- View this message in context: http://camel.465427.n5.nabble.com/Conditionally-omitting-a-portion-of-a-route-tp5770127p5770132.html Sent from the Camel - Users mailing list archive at Nabble.com.