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.
In plain JMS we can do: session.unsubscribe(name of the durable subscription); but how do
Share
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
DefaultMessageListenerContainerclass and callinggetSession()orcreateSession(). 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.