What is the easiest way to transfer files over RMI ?
Asked
Active
Viewed 154 times
1 Answers
3
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.

user207421
- 305,947
- 44
- 307
- 483