<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 27, 2015 at 8:43 AM, Thomas Diesler <span dir="ltr">&lt;<a href="mailto:tdiesler@redhat.com" target="_blank">tdiesler@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"><div><font size="1" face="Courier New"><br></font></div></blockquote><div><div>I now wonder if it is possible to implement a camel load balancer variant that is able to discover the initial topology of wildfly http endpoints and later react on changes in that topology. Does that make sense?</div></div></blockquote></div><br><br></div><div class="gmail_extra">I am thinking that you could register undertow subsystem event listeners in camel subsystem (or any other that is for that purpase)<br></div><div class="gmail_extra">So undertow subsystem would send you events on when deployments are started/stopped, hosts are started/stopped.<br></div><div class="gmail_extra">see <a href="https://github.com/wildfly/wildfly/blob/master/undertow/src/main/java/org/wildfly/extension/undertow/UndertowEventListener.java">https://github.com/wildfly/wildfly/blob/master/undertow/src/main/java/org/wildfly/extension/undertow/UndertowEventListener.java</a> for what is possible<br><br></div><div class="gmail_extra">This is how we integrate with mod_cluster subsystem that than broadcasts the config to the apache mod_cluster module.<br><br></div><div class="gmail_extra">You could get this events and than push config to zookeeper based on that.<br><br></div><div class="gmail_extra">would that work for you?<br><br>--<br>tomaz<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br></div></div>