my dog learned polymorphism*
The moose likes Distributed Java and the fly likes javaspaces policy file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "javaspaces policy file" Watch "javaspaces policy file" New topic
Author

javaspaces policy file

Tyler Verco
Greenhorn

Joined: Jul 01, 2010
Posts: 1
hello,
I am using javaspaces for the first time, I wrote a simple client-server application where the server sends a task to the client and the client runs it.
my problem is with the policy file at the client, i do not want to give it all permissions


i want to make a strict policy for the code downloaded from the server and give all permissions to the original code running at the client.
i tried :


i also tried



it does not work, it denies access to SocketPermission when the client tries to connect to the space
java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.0.2:4160 connect,resolve)

i searched a lot and tried a lot of things but all gives the same output, i don't know what i am doing wrong.

I will be very thankful if any one could help me.

thanks in advance,

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javaspaces policy file
 
Similar Threads
struts file upload problem
Java2 Security Permissions
RAD - WAS6 Admin Console -Error page exception
acces denied
acces denied java.io.FilePermission