Package org.cloudfoundry.runtime.service.messaging

Examples of org.cloudfoundry.runtime.service.messaging.RabbitServiceCreator


 
  @Bean
  public ConnectionFactory connectionFactory() {
    CloudEnvironment environment = new CloudEnvironment();
    if (environment.getInstanceInfo() != null) {
      return new RabbitServiceCreator(new CloudEnvironment()).createSingletonService().service;
    } else {
      CachingConnectionFactory connectionFactory = new CachingConnectionFactory("localhost");
      connectionFactory.setUsername("guest");
      connectionFactory.setPassword("guest");
      return connectionFactory;
View Full Code Here


 
  @Bean
  public ConnectionFactory connectionFactory() {
    CloudEnvironment environment = new CloudEnvironment();   
    if (environment.getInstanceInfo() != null) {
      return new RabbitServiceCreator(new CloudEnvironment()).createSingletonService().service;
    } else {
      CachingConnectionFactory connectionFactory = new CachingConnectionFactory("localhost");
      connectionFactory.setUsername("guest");
      connectionFactory.setPassword("guest");
      return connectionFactory;
View Full Code Here

TOP

Related Classes of org.cloudfoundry.runtime.service.messaging.RabbitServiceCreator

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.