shrini1000
shrini1000

Reputation: 7226

Java: how to unsubscribe a durable subscriber from Spring's DMLC?

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

Answers (1)

Brad
Brad

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

Related Questions