1 Reply Latest reply: Sep 26, 2011 4:07 PM by EJP RSS

    Security Manager and Policy Files

    890605
      Hi all,

      I am writing a simple java rmi application, but understand it wont run without a Security Manager installed and a policy file.

      I think I have installed the security manger using the following in the main() method of my client application:
      System.setSecurityManager(new RMISecurityManager());
      However I am unsure how to use a policy file with this. I have looked on the internet, but it does not seem to be very well documented

      Please could you advise me how to create a policy file that will work for my application and where to place it in my application so that my application can use it.

      Any help would be greatfuly appreciated

      Thanx

      Aaron