This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with start RMI

 
Abiodun Okusolubo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
I need help in starting rmi without the command line inputs. However, I know how to start rmi programmatically, but how do I include the location of policy file when starting the program without command line inputs.

thanks.
 
Kevin Conaway
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Abiodun,

Take a look at LocateRegistry.createRegistry() and LocateRegistry.getRegistry(). Those should help you in starting your rmiregistry programatically.

As far as a policy file goes, my instructions explicitly state that I should not require the use of a SecurityManager so I cannot help you there.

Kevin
 
Abiodun Okusolubo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kevin,
Thanks a million. That works well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic