camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kovacs Zsolt <zsolt.m.kov...@gmail.com>
Subject dynamic routes
Date Thu, 22 Sep 2011 14:22:49 GMT
Hi,
  A have a bean with many-many interface functions, I want to route to them
without to explicitly hard code the function name into a switch() ...
statement.

  For example: The method name itself I put in exchange header or a
property. Then  It's possible to send the exchange to

   .to("bean:beanName?method=${header.collect}")

 where ${collect} come from header or property.

Thanks,
Zsolt

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message