Managing queue subscriptions with JCSMP Java client

petegehrman
petegehrman Member Posts: 43 ✭✭

I have a Java application that is a queue consumer, and I'd like it to be able to do its own queue/subscription management. There a configuration file that defines the queue name and a collection of subscriptions that should exist for the queue, and when the application initializes it will create the queue and subscriptions. If there is an existing subscription configured on the broker that is not present in the application configuration, it needs to be removed. However, I don't see a way to list the existing queue subscriptions in the Java api (there is only add/remove). Is there a way to do this?

Comments

  • nram
    nram Member, Employee Posts: 80 Solace Employee

    @petegehrman , you are right. Listing existing subscriptions on the Queue is not available from client API. Client APIs have limited administrative capabilities. You will need to use our management API such as SEMPv2 (preferably) or SEMPv1 for such operations.