XD-2079: Classloader for ContainerDelegate
JIRA: https://jira.spring.io/browse/XD-2079 Use the `ContainerDelegate`'s class loader to create the proxy. Problems in XD creating the proxy to apply the advice chain in the rabbit source.
This commit is contained in:
@@ -583,7 +583,7 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
|
||||
factory.setProxyTargetClass(false);
|
||||
factory.addInterface(ContainerDelegate.class);
|
||||
factory.setTarget(delegate);
|
||||
proxy = (ContainerDelegate) factory.getProxy();
|
||||
proxy = (ContainerDelegate) factory.getProxy(ContainerDelegate.class.getClassLoader());
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user