Package org.springframework.integration.gateway

Examples of org.springframework.integration.gateway.GatewayProxyFactoryBean


        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 {
View Full Code Here


    Set<NotificationGateway> gateways = new HashSet<NotificationGateway>();

    for (String str : this.proxyMap.keySet()) {
      NotificationConsumerStrategy ncs = getNotificationConsumerService().getConsumerStrategy(str);
      if (ncs.isStrategyFor(pt)) {
        GatewayProxyFactoryBean gateway = this.proxyMap.get(str);
        if (gateway.isRunning()) {
          try {
            NotificationGateway s = (NotificationGateway)gateway.getObject();
            gateways.add(s);
          }
          catch (Exception e) {
            e.printStackTrace();
          }
View Full Code Here

TOP

Related Classes of org.springframework.integration.gateway.GatewayProxyFactoryBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.