ArticlesProjectsCredentialsAbout

RMI DeviceService Demo (1999)

A working Java RMI client/server for the NMS DeviceService — demonstrates remote interface definition, stub generation, registry binding, and remote exception handling.

corbarmidistributed-systems

RMI DeviceService Demo (1999)

A complete, runnable RMI example — remote interface, implementation, server registry, and client.

Contents

  • DeviceService.java — remote interface with RemoteException declarations
  • DeviceServiceImpl.java — server-side implementation
  • DeviceServer.java — starts the RMI registry and binds the service
  • DeviceClient.java — looks up the service and calls methods
  • build.sh — compiles, runs rmic to generate stubs, starts server

Running

bash build.sh
# Terminal 1: java -cp build DeviceServer
# Terminal 2: java -cp build DeviceClient localhost