activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erich Duda <>
Subject Re: Streaming of large messages over JMS
Date Tue, 28 Feb 2017 16:20:13 GMT
Thanks for response.

It makes sense. I thought it is done because of performance but I wasn't 
sure. I supposed that Java do these optimizations already in 

Based on your response I've done research on Internet and it seems you 
are right. BufferedInputStream really saves IO calls.


Dňa 28.02.2017 o 16:56 Clebert Suconic napísal(a):
> If you worked directly with the FileINputStream, it would work, but it
> would generate too many IO calls... it's user's code, the user can do
> anything they want with this Stream, but I thought any Java dev would
> do this kind of thing by default.
> I wrote this about 5 or 6 years ago though.. it's hard to remember why
> I did that... but that's what I remember anyways.
> On Tue, Feb 28, 2017 at 7:09 AM, Erich Duda <> wrote:
>> Hi all,
>> I would like to ask one question about streaming of large messages over JMS.
>> I've found a nice documentation [1] with a lot of examples. However  I
>> wonder why in examples FileInputStream and FileOutputStream are wrapped by
>> BufferedInputStream and BufferedOutputStream. There is no explanation in the
>> text. Is it really required? Or is it done because of performance?
>> Thanks in advance.
>> Erich
>> [1]

View raw message