This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!