Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

javaspaces policy file

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,

 
A feeble attempt to tell you about our stuff that makes us money
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic