I'm working on the final packaging of my assignment, but have one final question. I'm using RMI, but I'm packaging the stubs & skeletons with the server and the stubs with the client, so I have no need for the RMIClassLoader and dynamic class downloading. Therefore, I do not require the rmi.server.codebase property, etc. HOWEVER, I'm wondering about the security policy file. In all of my testing both my client and server startup and run just fine without specifying a policy file - I would expect this since I'm not loadiing any class files remotely. However, I have a co-worker who claims that his server required a policy file to start properly (something about a security exception when binding to the rmiregistry or some such). I have not seen this behavior, but I'm concerned. Can someone advise? Thanks! Matt Comer
Well, I kind of have your same thoughts. However, I do not use an RMISecurityManager in my server, however, I do use one in my client. In my case also, I could have everything run fine without it in either place. I am always starting java with a policy file though, just in case. Mark
Gee, the sheer number of responses has me overwhelmed... grin
posted 15 years ago
If you install a new rmi security manager on the server you are going to need a policy file. If you do not install a new security manager you do not need it. At least this was my experience with it. Trevor
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads