开发者

Transferring large files with Apache NMS

开发者 https://www.devze.com 2023-02-22 05:57 出处:网络
What is currently considered state-of-art, so to speak, when transferring large files over Apache NMS (using ActiveMQ)? Putting the whole 开发者_运维知识库content into a StreamMessage? However, I\'ve

What is currently considered state-of-art, so to speak, when transferring large files over Apache NMS (using ActiveMQ)? Putting the whole 开发者_运维知识库content into a StreamMessage? However, I've seen the naming here is a bit misleading as the file isn't actually streamed over JMS, the entire content will reside in memory (or disk?) and will be sent all at once. Here I got some problems with files > 100 MB: Apache.NMS.NMSException : Unable to write data to the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.

BlobMessage is not supported in NMS...I really see no option but to split the file in chunks, re-assemble them on the other side, etc.

Thank you, Cristian.


how about using GZIPInputStream, for example : GZIPInputStream inputStream = new GZIPInputStream(new ByteArrayInputStream(gzipped));

0

精彩评论

暂无评论...
验证码 换一张
取 消