IntelliJ Java IDE
The moose likes Distributed Java and the fly likes policy file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "policy file" Watch "policy file" New topic
Author

policy file

Devu Shah
Ranch Hand

Joined: Jun 21, 2001
Posts: 50
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

Joined: Jun 06, 2001
Posts: 17
You have answered your own question.
This behavour is because you have not instantiated the security manager.
Regards,
Robert
 
IntelliJ Java IDE
 
subject: policy file
 
Threads others viewed
Dynamic dowload
runtime exception
policy file and jar file problem
This can be done, but the question is HOW?
where's the "sharpen your pencil" answer?
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture