AnsweredAssumed Answered

DeliveryReceiptRequest is not being added to the message

Question asked by andrelab on Apr 8, 2015
Latest reply on Apr 9, 2015 by andrelab

I enable the functionality with


DeliveryReceiptManager.getInstanceFor(connection).autoAddDeliveryReceiptRequests ();


but the receipt request was not being added to the message.



After some debugs, I noticed that the DeliveryReceiptRequest is being added after the message is written in the writer.


I think that's why it is using addPacketSendingListener. If it would be added with addPacketInterceptor it would work.


   public void autoAddDeliveryReceiptRequests() {

        connection().addPacketSendingListener(AUTO_ADD_DELIVERY_RECEIPT_REQUESTS_LISTEN ER,