• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How important is codebase and security

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not an expert in RMI, so not sure, how significant codebase and security for this exam.

Please comment on my approach.
1. I am planning to include the stubs with the client.
2. I am not planning to suggest the usage of codebase.
3. I will use a policy file, does this mean that I must intialize security manager too ?.
Please help me get educated.
Thanks,
-Rajesh
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without a security manager, a policy file doesn't do anything. You do not need an RMISecurityManager, the bog standard SecurityManager is enough. In fact you do not strictly need security at all, although I would recommend it certainly on the server side.
- Peter
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter, Thanks for the information. How about code base ?. I finished the assignment very quickly and just class documentation took lots of time, now these minor issues are killing me.
Thanks again,
-Rajesh
 
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to use the java.rmi.server.codebase property during the server startup, you need to use absolute URL which is not possible for my implementation since I didn't use a HTTP server or didn't want to hardcode the drive letter. Also the codebase property really matters only when the rmiregistry tries to instantiate the _Stub instance.
Take a look at the thread for my explanation.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wish I had the link, but yesterday Peter said that we don't need the security manager on either side, since we are not downloading the stubs dynamically. I myself put a SercurityManager only on the client. I could never get it to work on the server. I have a policy file, but it gives all access, so if there was no SecurityManager on the client, I wouldn't have needed it at all. I did not have a policy file for the server
Mark

Sheesh you walk away for a 30 minute meeting and everyone posts before you. What they just said.
[ April 16, 2002: Message edited by: Mark Spritzler ]
 
Peter den Haan
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ultimately it's easy to see if you need a SecurityManager, isn't it? --- Comment out the code and run Then, if you wish, use -Djava.security.manager= and -Djava.security.policy= to experiment a bit with the things.
- Peter
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My Thanks to all of you. Great forum with great people.
-Rajesh
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic