Package org.springframework.amqp.rabbit.connection

Examples of org.springframework.amqp.rabbit.connection.SingleConnectionFactory.destroy()


    template.convertAndSend(ROUTE, "message");
    String result = (String) template.receiveAndConvert(ROUTE);
    assertEquals("message", result);
    result = (String) template.receiveAndConvert(ROUTE);
    assertEquals(null, result);
    singleConnectionFactory.destroy();
  }

  @Test
  public void testSendAndReceiveTransactedWithImplicitRollback() throws Exception {
    template.setChannelTransacted(true);
View Full Code Here


    connectionFactory.setPort(BrokerTestUtils.getAdminPort());
    Queue queue = new RabbitAdmin(connectionFactory).declareQueue();
    assertEquals("/", connectionFactory.getVirtualHost());
    List<QueueInfo> queues = brokerAdmin.getQueues();
    assertEquals(queue.getName(), queues.get(0).getName());
    connectionFactory.destroy();
  }

}
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.