Hello, I have to dev a streaming processor to consume stomp messages. The code make the job but I have a problem with de primary node change. By default, the processor is configured on primary node only to handle duplicate message.
What I find is that when there's a change of primary node, the consumer on the previous primary continues to work, so I end up with duplicates. the processor on the previous primary should stop when a switch is made. I've found the "@OnPrimaryNodeStateChange" annotation, but I'm not sure how to use it. Do you have any examples of processors that use it to switch message consumption from one primary to another? Thanks for your help. ML Interne ------- Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. L'intégrité de ce message n'étant pas assurée sur Internet, la SNCF ne peut être tenue responsable des altérations qui pourraient se produire sur son contenu. Toute publication, utilisation, reproduction, ou diffusion, même partielle, non autorisée préalablement par la SNCF, est strictement interdite. Si vous n'êtes pas le destinataire de ce message, merci d'en avertir immédiatement l'expéditeur et de le détruire. ------- This message and any attachments are intended solely for the addressees and are confidential. SNCF may not be held responsible for their contents whose accuracy and completeness cannot be guaranteed over the Internet. Unauthorized use, disclosure, distribution, copying, or any part thereof is strictly prohibited. If you are not the intended recipient of this message, please notify the sender immediately and delete it.
