Hello Aleksey, Take a look at the following test https://github.com/szhem/camel-osgi/blob/master/src/test/java/org/apache/camel/osgi/service/integration/OsgiDefaultEndpointTest.java.
testInstallUninstallBundle tests new bundle installation/uninstallation and I've already commited testStopBundle test that tests only stopping the bundle. OsgiInvocationHandler only hides proper invocation of OSGi service, the magic that handles appearance/disappearance of OSGi services is OsgiServiceCollection. Sergey > szh.subs > I think so, that the example with two OSGi services will not work. > The object will return OsgiDefaultLoadBalancer always only one of the > services. In turn, OsgiDefaultLoadBalancer working through proxy > OsgiInvocationHandler. If you stop the OSGi bundle with the selected service > balancer does not switch to the second service. > Aleksey. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-list-of-consumers-for-the-same-route-tp5713374p5713438.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Best regards, Sergey mailto:[email protected]
