4 Replies Latest reply on Aug 16, 2011 4:18 AM by jeffery c

    input/outputstream of large message

    jeffery c Newbie

      hi all.

      i use core api to send/receive large message.

      genernally, we close stream where we create it after consuming.

      but the producer#send is not block, so i assue that i should not close that inputstream after i call producer#send method, and this is what the jms-large-message example shows, although it is a example with jms-api.

      and i found that the jms-large-message example close the outputstream after receiving the large message.


      my question is, what should we do with the input/outputstream with producer#send, consumer#saveToOutputStream, consumer#setOutputStream?