permaculture playing cards
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Port number parameter not needed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Port number parameter not needed?" Watch "Port number parameter not needed?" New topic

Port number parameter not needed?

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Do you think that the port number is needed in command line parameters? At least my server seems to work only with port number 1099.
Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
1099 if the default RMI port, but you can obviously configure it.

Regards,<br />Andrea<br /> <br /><a href="" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID :<br /><a href="" target="_blank" rel="nofollow">My Blog</a>
Stephane Weber
Ranch Hand

Joined: Mar 07, 2002
Posts: 110
That's it. So the question really is : do you want to let the user choose another port, or do you want him to always rely on the default 1099 port ?
Both are acceptable IMO, I would suppose however that your choice should be explained in your design decisions if you decide to use only default.
Hope it helps
Mag Hoehme
Ranch Hand

Joined: Apr 07, 2002
Posts: 194
I allowed the port number as an optional parameter.

I agree. Here's the link:
subject: Port number parameter not needed?
jQuery in Action, 3rd edition