Hello,
I did my assignment so that the user can change the connection
mode anytime. It works fine except one case:
The user selected network mode (and failed) :
And later wants to change to local mode. The connection failed,
because of security problem with
access denied (java.io.FilePermission .\suncertify\db\db.db write)
The problem is that at RMI connection I set the RMISecurityManager and when I want to make a new local connection it is exists.
I tried to use
System.getSecurityManager when I start the client to save the original SecurityManager and set it back when local connect is called. But, at this time I do not have rights to set the SecurityManager... (Should this kind of right to the policy file which is used by RMISecurityManager?)
Any good idea?
Br,
Ban
I did my assignment so that the user can change the connection
mode anytime. It works fine except one case:
The user selected network mode (and failed) :
And later wants to change to local mode. The connection failed,
because of security problem with
access denied (java.io.FilePermission .\suncertify\db\db.db write)
The problem is that at RMI connection I set the RMISecurityManager and when I want to make a new local connection it is exists.
I tried to use
System.getSecurityManager when I start the client to save the original SecurityManager and set it back when local connect is called. But, at this time I do not have rights to set the SecurityManager... (Should this kind of right to the policy file which is used by RMISecurityManager?)
Any good idea?
Br,
Ban