• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Server Instructions...

 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm..
I never understood why it is called DNS Server?
Is it not just a TCP/IP or RMI server?
Help??
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Naming.rebind("//"+hostName.trim()+":"+portNumber+"/RemoteServer", this);


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
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I get it. I just read the assignment again-
It is DNS nameof the server,
not
DNS Server name
Aruna.
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
???
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, you are correct.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic