I'm using RMIIO to send a file from a client to the server. My code is as follows:
1. On the client I create a SimpleRemoteInputStream and export it to the server.
2. On the server I read the SimpleRemoteInputStream and save it to a file. That works fine when the firewall is off,
but when the firewall is on then it doesn't. I have been using Wireshark to monitor the port which the server (now the client)
is trying to communicate back with the client (now server) on and each time it's different.
The docs at
http://openhms.sourceforge.net/rmiio/faq.html#firewall state that the port that the RMIIO server
exports objects on can be set by setting a system property called com.healthmarketscience.rmiio.exporter.port. I have tried setting
this by doing java -Dcom.healthmarketscience.rmiio.exporter.port=xxxx MyProgram but it does not work.
I am new to RMMIO and I may be missing something. For example the docs state that setting the port only works
when using the "default RemoteStreamExporter." but I'm not even sure if I'm doing that. Can anyone please shed some light?
Thanks,
Ernest
[ October 21, 2008: Message edited by: ernest fakudze ]
[ October 21, 2008: Message edited by: ernest fakudze ]