• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is the policy file necessary on the server

 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone,
I look up lots of related topic on this forum.
I want to confirm the policy file.
1. in the client
System.setSecurityManager(new RMISecurityManager());
And the cliet.policy file is:
grant
{ permission java.security.AllPermission;
};
the question is AllPermission is right?
2. in the server
I didn't use anything.
the question is whether it needs setSecurityManager and a policy file
if it is necessary, what the content should be in policy file?
Can anyone help? thanks!
stephen
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops, help please ....
stephen
 
Roman Rytov
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the policy on the server needs to allow to open a file and to accept socket connection.
I use all-granting policy file for the server and for the client parts.
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Roman,
I'll use the policy file as you said.
thanks !
stephen
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic