2

可以说,在通过 Apache NMS(使用 ActiveMQ)传输大文件时,目前认为什么是最先进的?将整个内容放入 StreamMessage 中?但是,我发现这里的命名有点误导,因为文件实际上并没有通过 JMS 流式传输,整个内容将驻留在内存(或磁盘?)中,并且会一次全部发送。在这里,我遇到了大于 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.

NMS 不支持 BlobMessage ......我真的看不到任何选择,只能将文件分成块,在另一边重新组装它们,等等。

谢谢你,克里斯蒂安。

4

1 回答 1

0

使用 GZIPInputStream 怎么样,例如: GZIPInputStream inputStream = new GZIPInputStream(new ByteArrayInputStream(gzipped));

于 2011-04-07T07:00:57.820 回答