Hello. Yes it helps, thanks !!!
On my single node Karaf, my bundle gets the lock, and the route starts : 15:11:56.306 INFO [Camel (fifi1) thread #3 - FileLockClusterService-null] Lock on file null\fifi1 acquired (lock=sun.nio.ch.FileLockImpl[0:9223372036854775807 exclusive valid]) 15:11:56.310 INFO [Camel (fifi1) thread #3 - FileLockClusterService-null] Leadership taken: consumer started: file:///C:/TMP/FIFI-T1/input?delete=true&recursive=true But is there any way to manage the Cluster Service out of the bundles ? In my very simple test, I have a single XML blueprint, but in our target context, we have about 100 jar packaged bundles, and I guess we can't configure the Cluster service in every one's source code... Moreover, how can I configure clustering information (node names, lock files folder, etc.) on multiple Karaf instances ? Thanks again. Regards. Le jeu. 21 avr. 2022 à 14:50, Daniel Langevin <daniel.lange...@shq.gouv.qc.ca> a écrit : > > Hi, > > I think you only missed to define your cluster in your blueprint like this > > Before the camelcontext only add this line. > > <bean id="clusterFIFI" > class="org.apache.camel.component.file.cluster.FileLockClusterService"/> > > > Hope it's help > > > Daniel Langevin > > > -----Message d'origine----- > De : Ephemeris Lappis <ephemeris.lap...@gmail.com> > Envoyé : 21 avril 2022 06:33 > À : users@camel.apache.org > Objet : Component master example > > Hello. > > I'm trying a very simple usage of the master component using a blueprint > (attached) on Karaf. > I have added the required camel features (blueprint, master), but when my > bundle starts I get an error message : "Caused by: > java.lang.IllegalStateException: No cluster service found" > > I've also tried to install some of the camel cluster service features, but > none is taken into account "by default". > > Is there any way to set such a cluster service out of the application's > blueprints ? Any example ? > > Thanks for your help. > > Regards.