Developing
a Java/RMI Client using JRMP
Gopalan Suresh Raj
Note |
To
work with any of these samples, you will need the
following: .........................................JDK 1.2 (Java 2) or higher |
The Steps involved in developing a Java/RMI Client are
1. Develop your Java/RMI Client
2. Develop your policy file
3. Compile the files and run the client
1. Develop your Java/RMI Client
StockMarketClient.java |
/** * StockMarketClient */ import java.rmi.*; import java.rmi.registry.*; import SimpleStocks.*; public class StockMarketClient
{ } |
2. Develop your security policy file
policy.all |
grant { permission java.security.AllPermission "", ""; }; |
3. Compile the files and run the client
E:\MyProjects\StockRMI> E:\MyProjects\StockRMI>javac *.java E:\MyProjects\StockRMI>java -Djava.security.policy=policy.all StockMarketClient The price of MY COMPANY is 159.2 E:\MyProjects\StockRMI> |
This site was developed and is maintained by Gopalan Suresh Raj |
Last Updated : Dec 19, '98 |
Copyright (c) 1997-99, Gopalan Suresh Raj - All rights reserved. Terms of use. |
All products and companies mentioned at this site,are trademarks of their respective owners. |