File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Please help me set RMIIO port using system property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Please help me set RMIIO port using system property" Watch "Please help me set RMIIO port using system property" New topic
Author

Please help me set RMIIO port using system property

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
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 ]

In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
james ahlborn
Greenhorn

Joined: Oct 31, 2008
Posts: 2
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

Joined: Mar 06, 2001
Posts: 13459

"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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help me set RMIIO port using system property