title: java RMI newbie-- how to ensure that all server-code other than that accessed via RMI, is not accessibly by client
body: <p>I am creating an RMI Service, and I Would like to ensure that only the portion of code that is accessed via the RMI service, can be accessed by a client machine....i.e. all server side code which is part of the RMI server app, and is not accessible via RMI, should not be accessible by a user who has access only to the client machine.</p>
  
  <p>How do I ensure the above? Am I correct in thinking that this can be done by appropriate policies in the RMI Policy file? What are the policies required for implementing the above?</p>