1 Reply Latest reply on Nov 18, 2009 12:12 PM by clebert.suconic

    Odd method for large messages

    timfox

       

      public long getLargeBodySize()
       {
       if (largeMessage)
       {
       return ((LargeMessageBuffer)getBuffer()).getSize();
       }
       else
       {
       return this.getBodySize();
       }
       }
      


      I don't get it, if it is a large message then surely it's buffer is a large message buffer? How could it not be?

        • 1. Re: Odd method for large messages
          clebert.suconic

          That's for the client size.

          Say you have a regular message, and the client set the buffer size as 1MiB, while the minLargeMessage on the ConnectionFactory is 100KiB.

          On that case, the message will be sent in chunks as a large message.

          The LargeMessageSize needs to be a long because of huge file support, so there is a separate method for that.

          Maybe there is a better way to do this?