Meaningless Drivel is fun!
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Ready to submit - need last minute help 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 "Ready to submit - need last minute help" Watch "Ready to submit - need last minute help" New topic

Ready to submit - need last minute help

Matthew Comer
Ranch Hand

Joined: Aug 10, 2001
Posts: 37
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?
Matt Comer
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Matthew Comer
Ranch Hand

Joined: Aug 10, 2001
Posts: 37
Gee, the sheer number of responses has me overwhelmed... grin
Trevor Dunn
Ranch Hand

Joined: Jun 13, 2001
Posts: 84
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.
I agree. Here's the link:
subject: Ready to submit - need last minute help
It's not a secret anymore!