Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help me set RMIIO port using system property

 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
james ahlborn
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that should work. what are you setting to port to? and, how are you verifying whether or not it is working.

as for using the default exporter, as long as you aren't setting any other rmiio system properties, you are using the default exporter.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jahlborn",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic