Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with start RMI  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!