aspose file tools*
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
Author

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?
Thanks!
Matt Comer
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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.
Trevor
 
Don't get me started about those stupid light bulbs.
 
subject: Ready to submit - need last minute help