Read and Write file | Interface | Implementation | Server & Client | RMI

preview_player
Показать описание
Write a program for

The server receives:
The name of a file
The position of the byte to be read
The Server open the file, reads the byte at the specified position and
returns the read byte.

The Client:
Sends a string representing the name of a file and the position of a
byte to be read
Receives the read byte
Writes the byte to a local file
Рекомендации по теме
Комментарии
Автор

IMHO the name of the video is a bit misleading. The example is NOT showing file operations over RMI. It only passing string (file name) and integer (position) via RMI. The rest of file operations are done as in a single JVM, where both Client and Server have access to the same disk/file structure. This isn't realistic scenario in a distributed environment. A better example would show how to wrap Input/Output Streams in an interface extending Remote and how properly to pass these new "remote" streams between a Client and a Server which DON"T have access to the same disk/file structure.

alexanderaric
Автор

I am getting the error... File not found

mansisinghal
join shbcf.ru