Examples of declareBinding()


Examples of org.springframework.amqp.rabbit.core.RabbitAdmin.declareBinding()

    RabbitAdmin admin = new RabbitAdmin(connectionFactory);
    Queue sourceQueue = new Queue(queue, false, false, true);
    admin.declareQueue(sourceQueue);
    TopicExchange exchange = new TopicExchange(DEFAULT_EXCHANGE);
    admin.declareExchange(exchange);
    admin.declareBinding(
        BindingBuilder.bind(sourceQueue).to(exchange).with("rabbitfixture.*"));
  }

  /**
   * Creates an instance of the queue on the rabbit broker. If already present then no action is taken.
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin.declareBinding()

    // Create a DeadLetterExchange and bind a queue to it with the original routing key
    DirectExchange dle = new DirectExchange("test.DLE", false, true);
    admin.declareExchange(dle);
    Queue dlq = new AnonymousQueue();
    admin.declareQueue(dlq);
    admin.declareBinding(BindingBuilder.bind(dlq).to(dle).with(testQueueName));

    container.setQueueNames(testQueueName);
    container.afterPropertiesSet();
    container.start();
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitAdmin.declareBinding()

    SimpleMessageListenerContainer container = new SimpleMessageListenerContainer(connectionFactory());
    Queue q = testQueue();

    RabbitAdmin admin = rabbitAdmin();
    admin.declareQueue(q);
    admin.declareBinding(testBinding());

    container.setQueues(q);
    // container.setMessageListener(testListener(4));
    container.setAutoStartup(false);
    container.setAcknowledgeMode(AcknowledgeMode.AUTO);
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.