• Post Reply Bookmark Topic Watch Topic
  • New Topic

policy file

 
Devu Shah
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
I have the following doubts:
1.In rmi, I am not dynamically downloading the class , but copying the class files.Do i still have to use the policy files.because it is working absolutely fine for me without it.But going through the books and some sites, it told me that since the security policy of java2 is restrictive,i have to provide the security policy file for granting the permissions.
So is it the must to implement it.
I made policy file... i made it most restrictive I tried from one machine to Other NT server ...
BUT BUT BUT my program still worked !!! WHY WHY.
I think my policy file implementation is wrong. no effect at all. Even in most restrictive policy file it is working?!?! I have placed policy file at the root of my package from where i run my program ...
Even tried keeping policy in many other possible directory .. BUT no effect.
where am i doing big mistake ?
please guide me.
( by the way I have not implemented Security manager as from proper book, i read that there is no need of security manager if you are not downloading/uploading dynamically. So i did not. While policy file is requiered to get socket connection in restruitive situation)
Hope some senior developer will have perfect answer...

 
Robert Philip
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have answered your own question.
This behavour is because you have not instantiated the security manager.
Regards,
Robert
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!