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:
Gary Russell
2014-12-20 16:13:12 -05:00
parent 8912db1947
commit f2922d1bfa

View File

@@ -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());
}
// -------------------------------------------------------------------------