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) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access