Java file transfer over RMI [duplicate]

一曲冷凌霜 提交于 2019-12-23 06:10:17

问题


What is the easiest way to transfer files over RMI ?


回答1:


RMI is a poor choice for this application. There is too much implicit data copying, and too much latency if you use multiple method calls.

Use a socket or an HTTP connection. See my answer in this question for a general-purpose solution.

I don't know why you are so fixated on using RMI for this. You've posted half a dozen questions on it, and you've already been told several times, e.g. now-deleted here, that it isn't suitable, or part of an overload avoidance strategy as you claimed.



来源:https://stackoverflow.com/questions/50684395/java-file-transfer-over-rmi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!