Hello.
Yes, the bean should be created in another bundle, exposed as a service,
and referenced by application bundles.
But this doesn't solve my problem : our customer uses an old Fuse 6.3
with Fabric8. Fabric8 exposes a master component with he same usage, but
that is implicitly available for any bundle without any added
configuration. The bundles "legacy" code is not aware of the clustering
context, and we'd like to keep it as is, and be able to deploy them
alternatively on the two environments...
Anyone has an idea for that ?
Thanks again, Daniel !
Regards.
Ephemeris Lappis
Le 21/04/2022 à 16:33, Daniel Langevin a écrit :
Hi,
Sorry this is beyond my understanding and skills.
Maybe it's possible to define in one bundle and refer to it in the others like
we do with a connection factory.
<reference id="clusterFIFI" interface="???????" />
Good luck and regards!
Daniel Langevin
-----Message d'origine-----
De : Ephemeris Lappis <ephemeris.lap...@gmail.com>
Envoyé : 21 avril 2022 09:22
À : users@camel.apache.org
Objet : Re: Component master example
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.
--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel
antivirus Avast.
https://www.avast.com/antivirus