Hi Ruplim,
It’s recommended to add the topic subscription manually when queues are created through soladmin. The wildcard topic string can also be added to the queue. Then the consumer can directly bind the queue without creating from API code.
In case if you need the topic subscription to be added from API code then, you may need to understand the difference between “owner” and “All other Permission” props in the queue.
-
Owner: Assign the client-username which will be used by consumer application. The client who binds the queue through that username will have full permission. It can add or remove topic subscriptions to queue.
-
All other Permission: As the name says, you can define the permission level for all other client-usernames apart from the owner. Any client connects through another username will have that permission. I recommend to have “no-access” if the owner is assigned for the queue otherwise, you can have “consume” or “modify” permission.
In your use-case, assign the consumer client-username as owner with “all other permission” as no-access and try to bind the queue.