🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Solace-JMS Dynamic Subscriptions.
What would be the best option to subscribe & unsubscribe to Topics/Queues dynamically with solace-jms with out using @JMSListener?
I could see a couple of options as listed below:
I) Initiating JmsListenerContainerFactory for individual endpoints.
ii) Making use of Connection instance to create JMS Session and having the subscription.
And for un-subscription making use of Session.unsubscribe() method call.
Answers
-
Yes, It's Spring based with" solace-jms-spring-boot-starter#3.0.0" dependency;
We are having both delivery modes.0 -
I'll add to this question ... we are trying to use the Spring @JmsListener for both persistent and non-persistent messages. But we would like to have the ability to subscribe and unsubscribe to the endpoints as needed rather than have predefined annotated methods that start subscriptions as soon as the App starts up.
We also do not know the names of our topics before hand so it will ideally have to be a way to programmatically start and stop subscriptions.Thanks,
0