4 Replies Latest reply on May 7, 2010 6:11 PM by Clebert Suconic

    Streaming vs. large messages

    Bill Burke Master

      The user documentation that discusses streaming and large messages is a little unclear.

       

      I want create a message directly from an HTTP InputStream.  I have a couple of questions if I use the client API - ClientMessage.setBodyInputStream(is)

       

      1) If the message is non-durable, will the input stream be consumed at send() within the same thread?  Obviously, the servlet container will close the input stream.

      2) If the message is non-durable, will the input stream still be stored in a file?  Or is that controlled by the size of the message body?  For performance reasons, I don't want small messages persisted.

       

      Thanks