Revert the fix for AmqpChannelFactoryBean.destroy
https://build.spring.io/browse/INT-SI43X-278 The `AbstractAmqpChannel` is not `DisposableBean` in `4.3.x`
This commit is contained in:
@@ -500,7 +500,9 @@ public class AmqpChannelFactoryBean extends AbstractFactoryBean<AbstractAmqpChan
|
||||
|
||||
@Override
|
||||
protected void destroyInstance(AbstractAmqpChannel instance) throws Exception {
|
||||
this.channel.destroy();
|
||||
if (instance instanceof DisposableBean) {
|
||||
((DisposableBean) this.channel).destroy();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user