Fixed orphaned channel setup
This commit is contained in:
parent
b247e8cde7
commit
c5342c116f
|
@ -66,9 +66,10 @@ public class MdmQueueConsumerLoader {
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@PreDestroy
|
@PreDestroy
|
||||||
public void stop() {
|
public void stop() throws Exception {
|
||||||
if (myMdmChannel != null) {
|
if (myMdmChannel != null) {
|
||||||
myMdmChannel.unsubscribe(myMdmMessageHandler);
|
// JMS channel needs to be destroyed to avoid dangling receivers
|
||||||
|
myMdmChannel.destroy();
|
||||||
ourLog.info("MDM Matching Consumer unsubscribed from Matching Channel {} with name {}", myMdmChannel.getClass().getName(), myMdmChannel.getName());
|
ourLog.info("MDM Matching Consumer unsubscribed from Matching Channel {} with name {}", myMdmChannel.getClass().getName(), myMdmChannel.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue