title: How to acknowledge message through program using Spring AMQP/Spring integration
body: <p>1) Server sends a message to client.</p>
  
  <p>2) Inbound channel adapter is configured to wait for "MANUAL" acknowledge mode operation from consumer</p>
  
  <p>3) "TaskBundlereceiver" bean is implementing "ChannelAwareMessageListener" and in the implementation method, I am performing message acknowledgement.</p>
  
  <p>I don't see "TaskBundlereceiver" getting executed. Am I missing something ?</p>
  
  <p>Below is the configuration details of the steps that I have explained.</p>
  
  <p>Appreciate your inputs.</p>
  
  <pre><code>    @Override
      public void onMessage(org.springframework.amqp.core.Message message, Channel channel) throws Exception 
      {
          logger.debug("In onMessage method of the channel aware listener. message =["+message.getBody().toString()+"]");
          channel.basicAck(message.getMessageProperties().getDeliveryTag(), true);
      }
  </code></pre>
  
  <p>XML Configuration :</p>
  
  <pre><code>    &lt;!-- Channel that receives the task bundle from the server for execution --&gt;
      &lt;int:channel id="fromKServerChannel"/&gt;
  
      &lt;int-amqp:inbound-channel-adapter id="taskBundleReceiverAdapter"
                                        channel="fromKServerChannel"
                                        error-channel="taskBundleErrorChannel"
                                        acknowledge-mode="MANUAL"
                                        expose-listener-channel="true"
                                        queue-names="kanga_task_queue"
                                        connection-factory="connectionFactory"
                                        concurrent-consumers="20"/&gt;
  
      &lt;int:chain input-channel="fromKServerChannel" output-channel="nullChannel"&gt;
          &lt;int:service-activator ref="taskBundleReceiver" method="onMessage"/&gt;
          &lt;int:service-activator ref="taskBundleExecutor" method="executeBundle"/&gt;
      &lt;/int:chain&gt;
  </code></pre>