Richard Sabey

Greenhorn
+ Follow
since May 08, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Richard Sabey

Originally posted by Barry Gaunt:
Hi guys, - the client GUI will also run locally (that is, on the server) so you can still modify the server's parameter settings and store them (on the server).
[ April 27, 2003: Message edited by: Barry Gaunt ]


If I understand you correctly, I may start a client, then use the client's GUI to specify the server host's domain name and the port number (!), two bits of info which will be saved in suncertify.properties. Then I start the server. Then the client can proceed in the usual way. This seems backwards to me. I'd have thought it more sensible for the server to have the means to store its own domain name and port number in suncertify.properties, and for a client to read suncertify.properties. But, if all modification to suncertify.properties must be done using a GUI, and the server must not have a GUI, ...?
Thank you for the suggestion to use RMI. I
downloaded Sun's tutorial on RMI, to find out that
Sun's method entails setting up an HTTP server
and a security manager (which you must not use in the SCJD assignment). So unless there is something I've missed, I think I'll stick to sockets. By all means point me at an RMI tutorial
which shows me the benefits of RMI without the need of an HTTP server or a security manager.
As for the point that, if I don't use RMI, I must work out an ad-hoc protocol to transfer info: I must implement a stand-alone mode where there is no object serialisation. So I must work out an ad-hoc protocol to transfer info *anyway*, so what's the extra difficulty with sockets?
To introduce myself to all you seasoned Java hands: I am an experienced
programmer but new to Java, and my SCJD assignment will be my first
experience of network programming.
I have just downloaded the instructions to my SCJD assignment. (I take it, then, that this is the "new exam".)
Suppose I decide to use sockets rather than the apparently more complex RMI.
How do I find out an appropriate port number to use? (I will be testing
on windows 98.) I suppose that the port number is something to be read
from suncertify.properties once it's set up? OK then, how should I advise
the examiner running the server process for the first time what port number
to put in? (Yes I know that I must provide a way for the examiner to do
this using the GUI.)