rmi question
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zhebin_cong
Posted On:   Saturday, February 2, 2002 05:45 AM

hello i am now studying rmi programing,in order to simulate distributed environment within one computer,i create two DIRECTORY-server and client,the remote interface and the implementation of the remote interface are put in the server directory,the stub class is put in the server too(because i use "rmic -v1.2",i have not skeleton class),i put the client program in the client directory,the follow question confused me: 1 where can i put the policy file?i found that i need two copies of the same policy file,one for server,the other one for the client,is that right? 2 i put the stub file in the server,then in client side command,i specify "codebase" to point to the stub,the program works well,when i open    More>>

hello
i am now studying rmi programing,in order to simulate distributed environment within one computer,i create two DIRECTORY-server and client,the remote interface and the implementation of the remote interface are put in the server directory,the stub class is put in the server too(because i use "rmic -v1.2",i have not skeleton class),i put the client program in the client directory,the follow question confused me:

1 where can i put the policy file?i found that i need two copies of the same policy
file,one for server,the other one for the client,is that right?
2 i put the stub file in the server,then in client side command,i specify "codebase" to
point to the stub,the program works well,when i open the client directory,there is
not stub class file there,but my book tell me the client will download the stub from
the specified path when it run,where the stub is downloaded?


thanks for any helps!

   <<Less

Re: rmi question

Posted By:   ryan_wexler  
Posted On:   Wednesday, February 6, 2002 01:07 PM

1)You need to set security policy for every java instance. THus you need to do it on both the client and server. You can of course point to the same file, if you intend for both to have the same permissions but you might want two files for flexibility.

2)The client still needs access to a copy of the stubs, make sure the stub file is in the classpath of the client
About | Sitemap | Contact