Outubro 2008
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          89
Running the Producer-Consumer Using RMI
nCompile All Source Files and Generate Stubs
n  javac *.java; rmic MessageQueueImpl
nStart the Registry Service
n rmiregistry
nCreate the Remote Object
n java –Djava.security.policy=java.policy MessageQueueImpl
nStart the Client
n java –Djava.security.policy=java.policy Factory