Hi Felix,
just use an Groovy interceptor, call the API and set the destinations list accordingly. Have a look at the code oft he ContentBasedRouter interceptor for reverece:
Look at line 73 & 74.
Cheers,
Thomas
Am 21.07.16, 12:06 schrieb "Ho Felix" <membrane...@googlegroups.com im Auftrag von felix...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "membrane-monitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to membrane-monit...@googlegroups.com.
To post to this group, send email to membrane...@googlegroups.com.
Visit this group at https://groups.google.com/group/membrane-monitor.
For more options, visit https://groups.google.com/d/optout.
<groovy>
[...]
exc.getDestinations().clear();
exc.getDestinations().add("http://yourTarget:port" + exc.getOriginalRequestUri());
return CONTINUE;
</groovy>[...]