reply.setBeanName("reply-"+s.getName());
DirectChannel mc = new DirectChannel();
mc.setBeanName("channel-"+s.getName());
GatewayProxyFactoryBean gatewayProxy = new GatewayProxyFactoryBean();
gatewayProxy.setDefaultRequestChannel(mc);
gatewayProxy.setServiceInterface(NotificationGateway.class);
gatewayProxy.setBeanFactory(getBeanFactory());
gatewayProxy.setBeanName("gateway-"+s.getName());
gatewayProxy.setComponentName("gateway-" + s.getName());
gatewayProxy.setDefaultReplyChannel(reply);
mc.subscribe(new ServiceActivatingHandler(s, "consume"));
gatewayProxy.afterPropertiesSet();
this.proxyMap.put(s.getName(), gatewayProxy);
}
}
else {