Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @Autowired
  2. EventDrivenConsumer myrouter;
  3. .....
  4. ((ExpressionEvaluatingRouter) myrouter.getHandler()).setPrimaryExpression(new SpelExpressionParser().doParseExpression("true"));
  5.  
  6. <int:router input-channel="catchweightExcluderChannel" expression="${rip.config.exclude_catchweight}" default-output-channel="productTransformerChannel">
  7. <int:mapping value="true" channel="catchWeightFilteringChannel" />
  8. <int:mapping value="false" channel="productTransformerChannel" />
  9. </int:router>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement