Try PubSub+
If you haven't already, check out our new Developer Portal! You'll find useful information about Solace PubSub+ as well as handy resources to get you started.

Issue subscribing durable queue to topic

Hello
We are using Spring Cloud Stream solace binder to connect to Solace. We are facing an issue when durable queues subscribe to topic.

Case 1:
When the application is creating the queue we are not facing any issue. The durable queue gets subscribed to the topic and is able to consume message successfully.

Case 2:
When the durable queue is not created by app (created by Solace Admin), we are seeing below error during application startup.
Caused by: com.solacesystems.jcsmp.AccessDeniedException: Permission Not Allowed - Queue 'XXXXX' - Topic 'YYYY'

We need help on the type of permission to be granted to resolve the access issue.

Thanks

Best Answer

Answers

  • marcmarc Member, Administrator, Moderator, Employee Posts: 90 admin

    Hi ruplim,
    Please see Andrew's response here: https://solace.community/discussion/94/spring-cloud-stream-and-solace-bindings
    At this time the SCS binder will always attempt to create the queue & add the topic subscriptions.

    -Marc

  • marcmarc Member, Administrator, Moderator, Employee Posts: 90 admin

    Hi @ruplim ,
    I just wanted to update you and anyone that finds this thread that the latest version of the Solace Spring Cloud Stream Binder now allows for you to disable queue provisioning so you can use it with pre-provisioned queues.

    There are three new properties that you can set to false to disable provisioning. You can find more info here.
    The properties are:
    1. provisionDurableQueue
    2. provisionSubscriptionsToDurableQueue
    3. provisionDmq

    Happy Streaming!

Sign In or Register to comment.