• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(B&S) How Does This Look When I Say "java -jar runme.jar server" ?

 
Bob Nedwor
hangman
Ranch Hand
Posts: 215
Eclipse IDE Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your opinion.

****
I previously had a picture here of the way it used to look, but I did not know that link to the picture is pulled directly, rather than actually stored on the saloon. So when I updated the picture, based on Kevin's solutions (below), I lost the original. Whoops. It just used to look like only the 2nd half of the one below - minus the info about the port id.
****
[ March 13, 2006: Message edited by: Bob Nedwor ]
 
B Chen
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sockets? I think displaying the actual port number would be better since BSsubsServer may not be in /etc/services on the user machines.
 
Bob Nedwor
hangman
Ranch Hand
Posts: 215
Eclipse IDE Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, B.
Not sockets, but RMI. So the remote user doesn't need the port.
--Bob
 
Bob Nedwor
hangman
Ranch Hand
Posts: 215
Eclipse IDE Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whoops! Ok, Thanks. Yes you were correct, BChen! I tried this at work and when I ran rmiregistry first, I got a nasty error about port 1099 already being in use.

So not only do I have to do what you said about considering the port as another peice of info, but I have to learn more about RMI, and in particular the createRegistry() method of the java.rmi.registry.LocateRegistry class.

Because I now know that we cannot depend on the evaluator running rmiresgistry on his computer first.

Thanks.
[ March 11, 2006: Message edited by: Bob Nedwor ]
 
Bob Nedwor
hangman
Ranch Hand
Posts: 215
Eclipse IDE Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I've got it now!

Everyone should read Kevin's helpful info at cool RMI Info Link
 
Bob Nedwor
hangman
Ranch Hand
Posts: 215
Eclipse IDE Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the new version. I think I have everything covered now (of course, I will also have to have a filechooser here somewhere to specify the location of the database).
This is what happens if this is the first time we launch the server, otherwise you only get the second box. Because of Kevin's solution below (and a hint from BChen), you can use any port - in case 1099 is not available. I just arbitrarily chose 17005 here. The client actually works with it too.

[ March 16, 2006: Message edited by: Bob Nedwor ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic