O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required