Adding message to the pending queue before emitting as this can lead to a race condition where the tuple is emitted and ack'd before it is placed in the queue.
Code reformat
Updated the spout to work with MQ7 async by not ack'ing the message
outside of onMessage().