How to acknowledge rabbitmq message manually using spring intergration

Viewed 885

I have created bean for inbound channel with acknowledge property as manual, and chain method for publishing the output message ,

<int-amqp:inbound-channel-adapter channel="InputChannel" 
    queue-names="Input" connection-factory="connectionFactory" concurrent-consumers="1" message-converter="Converter"  
      acknowledge-mode="MANUAL" prefetch-count="5"/>

<int:chain input-channel="InputChannel" output-channel="OutputChannel">

      <int:transformer method = "transform" >
        <bean class="com.sampleconverter" />
      </int:transformer>
        <int:service-activator method="transform">
             <bean class="com.Transformer" />
        </int:service-activator>
     <int:object-to-string-transformer />
   </int:chain>

Can you please help me with the way to acknowledge messages processed with the manual acknowledge mode,

Thanks in advance.

1 Answers
Related