changed default connection-factory value to 'rabbitConnectionFactory' to be consistent with the Spring AMQP listener-container

This commit is contained in:
Mark Fisher
2011-09-09 20:36:02 +01:00
parent 797b4f39f0
commit dbf4c2122f

View File

@@ -111,7 +111,7 @@ abstract class AbstractAmqpInboundAdapterParser extends AbstractSingleBeanDefini
"org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer");
String connectionFactoryRef = element.getAttribute("connection-factory");
if (!StringUtils.hasText(connectionFactoryRef)) {
connectionFactoryRef = "connectionFactory";
connectionFactoryRef = "rabbitConnectionFactory";
}
builder.addConstructorArgReference(connectionFactoryRef);
for (String attributeName : CONTAINER_VALUE_ATTRIBUTES) {