I have an application that has to connect to two different clusters:
Cluster 1: runs Incubator MessagingPattern, so it uses the MessagingPattern cache config, with a tangosol-coherence-override.xml to specify multicast address/port.
Cluster 2: runs a "classic" coherence datagrid, so it has its own cache-config.xml and its own tangosol-coherence-override.xml to specify its multicast address/port.
How can I make an application connect and use at the same time these two clusters ? (i.e. cluster 1 for messaging, cluster 2 for storing data).
You application can only be a member of 1 cluster at a time. You would need to use extend to access the other cluster since extend clients are not really cluster members. This is what incubator PushReplication does. The PushReplication publisher run on a member of the cluster and uses extend to replicate data to the other cluster.