1 Reply Latest reply on Aug 11, 2011 1:02 AM by clebert.suconic

    LargeMessage receiving problem

    galanfish

      hi all. is there some async-way to notify my app that the large message is completely received, somehow i do not call message#saveToOutputStream, so i call message#setOutputStream(), and this method is not block.

      and, in when to call message#acknowledge() is correct when receive large message, since setOuputStream is not block and i don't know what time will the outputstream be done

        • 1. Re: LargeMessage receiving problem
          clebert.suconic

          you shouldn't receive any other message until the stream is complete. If you are using a message listener, you will only receive another message if the previous message was complete. you could make some logic on the last message.. or something like that.

           

          The easiest would be to block though IMO on saveOutptStream. (if you really need to ACK only after the message was finished).