Hi,
in my application, To run the server:
i have to type in this info:
codebase,
servername,
databasefilename
But to run the remote client i just say:
java client
I know when i use codebase, i HAVE to include the policy file and create newRMISecurityManager.
But here are some cases i found:
1. I have a policy file with all permission grants.
2. When i include policy file like this, the application works just fine:
System.setProperty("java.security.policy", "scjd.policy");
3. when i include newRMISecurityManager like this , the application runs fine:
System.setSecurityManager(new RMISecurityManager());
4. But when i include both the application DOESN'T run. It gives access control exceptions.
why?
5.When i DON'T include either of these, my application runs fine, why?
can someone please explain me?
what should i do now?
thanks,
sri