Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Question: long startup time

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Developers,
I have the following problem with RMI:
During development i used the following policy file:
grant {
// Allow everything for now
permission java.security.AllPermission;
};
Everything works fine and is fast.
But for the submission i want to use a more restrictive policy file:
grant {
permission java.net.SocketPermission "*:1024-65535",
"connect,accept";
permission java.io.FilePermission
"d:\\scjd\\-", "read,write";
};
Now, when i run my server and client it waits a long time (5-10 minutes) and then starts. The server hangs at the line:
Naming.rebind(..,..);
and the client at the line:
Naming.lookup(..);
I'm running Windows.
Has anybody the same problem or any suggestions? Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic