An RMI Order Status Server

RMI allows service objects to be created and made available to one or more Java applications that may require that service. One possible application of RMI is to use it as an informational gateway, providing simplified access to what may be a complex subsystem. The following application demonstrates such a solution.

The example shown below uses an RMI server object to expose an order status information object, which when passed an order number, returns an object that encapsulates the order status information for that order.

The single method exposed to client objects is identified in the Java interface shown below. The OrderStatus object returned is part of the movies.control package (an example developed for this book) ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.