/** * Get the {@link ConnectionFactory} object for the specified RabbitMQ service. * * This is equivalent to the <cloud:rabbit-connection-factory service-id="serviceId"> element. * * @param serviceId the name of the service * @return rabbit connection factory * @throws CloudException if the specified service doesn't exist */ public ConnectionFactory rabbitConnectionFactory(String serviceId) { return rabbitConnectionFactory(serviceId, null); }
/** * Get the {@link ConnectionFactory} object associated with the only RabbitMQ service bound to the app. * * This is equivalent to the <cloud:rabbit-connection-factory> element. * * @return rabbit connection factory * @throws CloudException if there are either 0 or more than 1 RabbitMQ services. */ public ConnectionFactory rabbitConnectionFactory() { return rabbitConnectionFactory((RabbitConnectionFactoryConfig)null); }