• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.net.SocketPermission  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am Rahul Sri2K3377. Sorry friends, I could not reply to my previous threads, as I was out of town and quiet busy.
Subject : How do you specify the permissions to the RMI Server at runtime.
Body :
Otherwise it seems very easy, that, you can create a policy file and specify your permissions and mention it at command line. But, here the problem is a bit different. Sun says that the examiner will not edit a single file. If that is the case, then how do give access to that IP (on which he chooses to run the server). Its okay that you can take the IP of that m/c as arg., but, how do you give that IP supplied at commandline the SocketPermission or FilePermission access before your server runs. If anybody has thought of it, please help me.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!