Reputation: 7226
In plain JMS we can do: session.unsubscribe("name of the durable subscription"); but how do we do it through DMLC? Couldn't find any specific method for this purpose in it.
Upvotes: 0
Views: 969
Reputation: 15879
To my knowledge, there is no Spring specific way of sending an "unsubscribe" command to the MQ server, however you always have the option of obtaining an underlying JMS Session by extending the DefaultMessageListenerContainer
class and calling getSession()
or createSession()
. After all Spring is just a convenient abstraction over the top of JMS and doesn't prevent you from using the JMS API directly if required.
Upvotes: 1