*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes is the policy file necessary on the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "is the policy file necessary on the server" Watch "is the policy file necessary on the server" New topic
Author

is the policy file necessary on the server

Kuan Fan
Ranch Hand

Joined: Jan 25, 2002
Posts: 48
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

Joined: Jan 25, 2002
Posts: 48
oops, help please ....
stephen
Roman Rytov
Ranch Hand

Joined: Jun 04, 2001
Posts: 75
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.


SCJA, SCJD, MCSD
Kuan Fan
Ranch Hand

Joined: Jan 25, 2002
Posts: 48
hi Roman,
I'll use the policy file as you said.
thanks !
stephen
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: is the policy file necessary on the server
 
Similar Threads
Run exe using Signed Applet
Policy File
Help on remote connection error
Do we need a server-side policy file?
Socket reuse and security