开发者

Transferring large files with Apache NMS

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜