Hey guys, The requirements document indicates we should have help files for the gui and the server. For the gui, I built them into the application, but the server, once your start it up, there is nothing to do, accept hit ctrl-c to stop it. I have included this verbage albeit in a better form in my READ_ME.txt file, do I need a server instructions file saying this same thing? :roll: Thanks in advance!
-Matt<br /> SCJP2<br /> SCJD
Aruna Raghavan
Ranch Hand
Joined: May 14, 2002
Posts: 194
posted
0
Hi Matt, I did a small gui for server that just takes the parameters but also has a help button. Help button is my manual. It's got a html link. By the way, are you hardcoding the port number and db file paths?
Matt you can just include the HTML page for the server instruction in the main directory and tell the assessor that that is where you server manual is. Mark
Thank's guys I'll do what you indicated Mark, that's quick and easy, I want to try to get this thing out of the door =). Also as for what I did:
By the way, are you hardcoding the port number and db file paths?
My port is hard coded on the server side, and the db file location is a parameter. So, you start my server by doing: java -jar server.jar [db file location] And, you start my client by doing: java -jar client.jar [hostname] [port] Although, for this case port is always 1099 [ January 15, 2003: Message edited by: Matt Ghiold ]
Garandi Garandi
Ranch Hand
Joined: Jan 07, 2003
Posts: 192
posted
0
This is how I start the server, please comment on it.
and this is how I use it.
Thank you Garandi
Matt Ghiold
Ranch Hand
Joined: Feb 24, 2002
Posts: 213
posted
0
Garandi your good to go. It definately meet's sun's requirements and even exceeds them as you are allowing them to change the port number on the server.
Aruna Raghavan
Ranch Hand
Joined: May 14, 2002
Posts: 194
posted
0
Hi, I also did not hardcode any thing- On server side ASks for dbpath and port number On local client side Asks for dbpath On remote client side asks for dns server name and port number.
Bernhard Woditschka
Ranch Hand
Joined: Sep 16, 2002
Posts: 89
posted
0
I think even on the server side the dns name is important. There is a difference in binding to localhost(or 127.0.0.1) and the real external name (or address). When binding to localhost no outside (other client machine) client coukd access the Remote object. Bern
Aruna Raghavan
Ranch Hand
Joined: May 14, 2002
Posts: 194
posted
0
Hmmm.. I never understood why it is called DNS Server? Is it not just a TCP/IP or RMI server? Help??
I used a much simpler version: registry.rebind(SERVICE_NAME, remoteDataFactory); where SERVICE_NAME is a simple string such as "FlyHighDatabaseService". Eugene.
Aruna Raghavan
Ranch Hand
Joined: May 14, 2002
Posts: 194
posted
0
Ok, I get it. I just read the assignment again- It is DNS nameof the server, not DNS Server name Aruna.
Adam Till
Ranch Hand
Joined: Oct 11, 2002
Posts: 41
posted
0
Hi Is there realy a need to supply the DNS server for the server application, cant we just put in 'localhost' as default? This worked on my home server and network but i suspect this is not how it works in the real world. Thanks
Adam Till<br />SCJP SCJD SCWCD
Matt Ghiold
Ranch Hand
Joined: Feb 24, 2002
Posts: 213
posted
0
Adam, Say DNS server in your instructions, because there is no gurantee that sun will be running the client and the server on the same system, and if you assume just localhost nothing good can come from it.
Adam Till
Ranch Hand
Joined: Oct 11, 2002
Posts: 41
posted
0
Matt I started a server on one machine using localhost as the dsn and started my client on another machine using the ip address of the serever and it connected to the database??? Should this be? Maybe I have left my machines on so long that they have developed their own AI.... Any ideas.
Matt Ghiold
Ranch Hand
Joined: Feb 24, 2002
Posts: 213
posted
0
Adam, Maybe I misread your message, but you are find if you are connecting via ip, your servers aren't generating any ai =). What I meant was in your instructions, specify that they use the DNS name, because that is what sun has in the requirements document as a valid parameter. A DNS address is really just an alias to an ip address, so you are good to go!
Adam Till
Ranch Hand
Joined: Oct 11, 2002
Posts: 41
posted
0
Matt Just want to confirm. On my server GUI I have a text field the port and databse location. My point is that you dont need to enter a dns as if you use localhost as default this sets up the server OK and any other machines that try to connect to it using the correct dns/ip will do so with no problem. I cant actualy see any reason why we should give someone the opportunity to put in a dns. ???