Examples of RabbitAdmin


Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

    return gateway;
  }
 
  @Bean
  public AmqpAdmin amqpAdmin() {
    return new RabbitAdmin(connectionFactory());
  }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

    connectionFactory.setUsername(svc_username);
    connectionFactory.setPassword(svc_passwd);
    connectionFactory.setVirtualHost(svc_vhost);

    String queueName = "CLOUD";
    AmqpAdmin amqpAdmin = new RabbitAdmin(connectionFactory);
    Queue cloudQueue = new Queue(queueName);
    amqpAdmin.declareQueue(cloudQueue);

    RabbitTemplate template = new RabbitTemplate(connectionFactory);
    template.setRoutingKey(queueName);
    template.setQueue(queueName);
    template.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

    return connectionFactory;
  }
 
  @Bean
  public AmqpAdmin amqpAdmin() {
    return new RabbitAdmin(connectionFactory());
  }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

  /**
   * @return the admin bean that can declare queues etc.
   */
  @Bean
  public AmqpAdmin amqpAdmin() {
    RabbitAdmin rabbitAdmin = new RabbitAdmin(connectionFactory());
    return rabbitAdmin ;
  }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

    return new AnonymousQueue();
  }
 
  @Bean
  public AmqpAdmin rabbitAdmin() {
    return new RabbitAdmin(connectionFactory());
  }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

  /**
   * @return the admin bean that can declare queues etc.
   */
  @Bean
  public AmqpAdmin amqpAdmin() {
    RabbitAdmin rabbitAdmin = new RabbitAdmin(connectionFactory());
    rabbitAdmin.setAutoStartup(true);
    return rabbitAdmin;
  }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

            }
        }
       
        if(this.amqpAdministration == null) {
            //Attempt to construct an AMQP Adminstration instance
            this.amqpAdministration = new RabbitAdmin(this.connectionFactory);
            LOG.info("Created new AMQP Administration instance");
        }
       
        return this.amqpAdministration;
    }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

            }
        }
       
        if(this.amqpAdministration == null) {
            //Attempt to construct an AMQP Adminstration instance
            this.amqpAdministration = new RabbitAdmin(this.connectionFactory);
            LOG.info("Created new AMQP Administration instance");
        }
       
        return this.amqpAdministration;
    }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

            }
        }
       
        if(this.amqpAdministration == null) {
            //Attempt to construct an AMQP Adminstration instance
            this.amqpAdministration = new RabbitAdmin(this.connectionFactory);
            LOG.info("Created new AMQP Administration instance");
        }
       
        return this.amqpAdministration;
    }
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin

        }
       
        if(this.amqpAdministration == null || this.amqpAdministration.isEmpty()) {
            //Attempt to construct an AMQP Adminstration instance
            this.amqpAdministration = new HashMap<String, AmqpAdmin>();
            this.amqpAdministration.put(DEFAULT_CONNECTION, new RabbitAdmin(this.connectionFactory.values().iterator().next()));
            LOG.info("Created new AMQP Administration instance");
        }
       
        return this.amqpAdministration;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.