• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

policy file

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have answered your own question.
This behavour is because you have not instantiated the security manager.
Regards,
Robert
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic