使用Apache NMS传输大型文件

时间:2011-04-06 13:42:34

标签: apache activemq file-transfer nms apache-nms

当通过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 ...我真的看不到选择,只能将文件分块,在另一边重新组装等等。

谢谢你, 克里斯蒂安。

1 个答案:

答案 0 :(得分:0)

如何使用GZIPInputStream, 例如 : GZIPInputStream inputStream = new GZIPInputStream(new ByteArrayInputStream(gzipped));