Outubro 2008
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          89
MessageQueue implementation
nimport java.rmi.*;
npublic class MessageQueueIMPL
n extends server.UnicastRemoteObject
n implements MessageQueue
n{
n public void send(Object item) throws
n                                RemoteException
n { /* implementation */
n  }
n public Object receive() throws RemoteException
n { /* implementation */
n  }
n}