acknowledgement.setGateway(gateway);
acknowledgement.setAckTimeoutMillis(200);
gateway.addMessageListener(acknowledgement);
gateway.addOutgoingMessageInterceptor(acknowledgement);
NettyReceiptListener receipt = new NettyReceiptListener();
receipt.setGateway(gateway);
gateway.addMessageListener(receipt);
NettyConnectResponseListener connectResponse = new NettyConnectResponseListener();
connectResponse.setGateway(gateway);
gateway.addMessageListener(connectResponse);