I have two topics in the Bus service with 2 subscriptions each and from the same project I want to consume all four. I tried to consume the topics separately and it works well, I consume both subscriptions of the topic, both of one and the other, the problem is to do both at the same time. It gives me this error: 'fullyQualifiedNamespace' can't be null. But even if I put this with the correct namespaces, it overwrites it to null anyway
cloud: azure: servicebus: topic1: bindings: consumeSuscripcionUno-in-0: group: topic1 consumeSuscripcionDos-in-0: group: topic1 connection-string: "connection-string" enabled: true topic2: bindings: consumeSuscripcionUno-in-0: group: topic2 connection-string: "connection-string" enabled: true
esta es una parte de la config donde intento configurarlo
I tried the below Java code to receive messages from two topics with two subscriptions from each.
Code :
pom.xml :
I created two topics with two subscriptions in each and send messages to it, as below in Azure Service Bus.
Topic1 :
Topic2 :
Output :
It runs successfully and has received each message from the four subscriptions in the two topics as below.