GeeCON Prague 2014*
The moose likes Distributed Java and the fly likes about security manager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Bookmark "about security manager" Watch "about security manager" New topic
Author

about security manager

Jimmy Chen
Ranch Hand

Joined: Apr 11, 2005
Posts: 54
I'm reading <Java RMI>(O'reilly).I find difficulty in understanding a sentence in this book, which says: "You don't have to use a security manager with your RMI application. The only basic feature of RMI that won't work is dynamic classloading. However, both the RMI registry and the activation daemon do use security policies".

Although RMI registry uses the security policies why "You don't have to use a security manager with your RMI application"? It seems inconsistent.

Actually, I can run rmiregistry and RMI application without the security manager.

So, who can help me to resolve this apparent conflict?

Many, many, many, many thanks!!!
sopal Pal
Ranch Hand

Joined: Aug 04, 2003
Posts: 83
A security manager is required in any JVM that needs to download code, and RMI clients need to download RMI stubs (as well as any other custom classes or interfaces needed to communicate with the RMI server).


SCEA, SCBCD, SCJP1.4, OOAD-UML, OCP 9i
Jimmy Chen
Ranch Hand

Joined: Apr 11, 2005
Posts: 54
Thank you sopal!
But why I can run rmiregistry and RMI application without use the security manager?

The book also says:"You don't have to use a security manager with your RMI application".

I'm confused!
sopal Pal
Ranch Hand

Joined: Aug 04, 2003
Posts: 83
because the code is not being downloaded for u. It can be found in its local classpath
Jimmy Chen
Ranch Hand

Joined: Apr 11, 2005
Posts: 54
thanks a lot. I got it
 
GeeCON Prague 2014
 
subject: about security manager