-
Nov 30th, 2012, 09:14 PM
#1
Configuring acknowledgements for RabbitTemplate but using standard bean def
We are using RPC pattern with Rabbit AMQP, and have the following bean declarations:
<bean id="rabbitConnectionFactory" class="org.springframework.amqp.rabbit.connection. CachingConnectionFactory">
<constructor-arg type="com.rabbitmq.client.ConnectionFactory">
<bean id="nativeRabbitConnectionFactory" class="com.rabbitmq.client.ConnectionFactory">
<property name="host" value="${project.hostname}" />
<property name="port" value="${project.port}" />
<property name="virtualHost" value="${project.vhost}" />
<property name="username" value="${project.username}" />
<property name="password" value="${project.password}" />
<property name="requestedHeartbeat" value="${project.heartbeat:30}" />
</bean>
</constructor-arg>
<property name="channelCacheSize" value="${project.channel.cache.size}"/>
</bean>
<bean id="amqpGetOrderRabbitTemplate" class="org.springframework.amqp.rabbit.core.Rabbit Template">
<property name="connectionFactory" ref="rabbitConnectionFactory" />
<property name="messageConverter" ref="jaxbMessageConverter" />
<property name="exchange" value="request.exchange" />
<property name="routingKey" value="order" />
<property name="replyTimeout" value="60000" />
</bean>
We call the RabbitTemplate convertSendAndReceive() methods, and want to change the acknowledge mode on the reply messages.
Is there any way to do change the acknowledgement mode for the replies in XML? The only option I found would be to create a SimpleMessageListenerContainer as was posted here http://forum.springsource.org/showth...-configuration and do it there using replyContainer.setAcknowledgeMode(AcknowledgeMode. NONE)
Thanks in advance.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules