• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

last minute question

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
Before i upload, i review my assignment, I found that sun just let us input the following parameters:
1 DNS name of the server
2 Port number used by the server
3 Data file name
4 java.rmi.server.codebase
5 security manager policy file
But when i start my RMI client, i need the URL of the remote server object, like below:
java -Djava.security.policy=d:\FBN\client.policy suncertify.client.MenuMain rmi://localhost/serviceFactory
I don't the whether the "rmi://localhost/serviceFactory"; is "DNS name of ther server"
I'll upload soon. please help! thanks!
stephen
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strictly speaking, the DNS name is the name of the server only (e.g. 'localhost'). In my application I only ask for the DNS name and then use that argument to build the lookup string (together with port number if given). Taking your example, I'm sure there's no problem in hardcoding, like the following:
"rmi://"; + dnsName + "/serviceFactory"
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I completely agree with Amund .
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Amund and Mathew,
I'll modify it as you said.
thanks again!
stephen
 
You don't like waffles? Well, do you like this tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic