Hi there! We have the following integration scenario:
App 1 is deployed in a clustered jboss environment, minimum of 4 nodes with
state replication, and consumes messages from a Topic
App2 is running inside a glassfish and uses hazelcast internally.
So we deployed a route that consumes certain hazelcast events/messages and
forwards it to the clustered HornetQ Topic. That was a piece of cake, thanks
to camel.
Now, we face a little problem. We only want this route to be created once.
On every node of our jboss servers we have one camel context, so far that
was good, not a problem. But if we package the route with our app, it would
be create more than once, leading to duplicates being sent to the Topic.
We solved this using jboss infrastructure HA-Singleton deployment, so only
one active context with the route is present. But, it would be nice if we
could rely only on camel for that. Is this possible? I mean, would be great
if we could have camel in a cluster and decide that certain routes are the
type of singleton across the cluster. We even have some ideas on how to do
this using jgroups under the hood and our camel-cdi-extension. Just would
like to know if there's official support or a plan for that.
Kind Regards