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

Binding RMI Objects into a Directory Server

The registry that is provided with RMI is fairly simple and limited. It was not intended for production use. It is possible and recommended that the remote objects (the remote object stubs) for a production application be bound into any JNDI naming service where they can then be retrieved by client applications. The following code fragment demonstrates this process.

In this example, a Data Access Object (DAO), an intelligent object for accessing databases, is exposed as a service. This particular DAO has been developed to handle general queries and to store the aggregated results of those queries (similar to the javax.sql.RowSet class but without the JDBC syntax for accessing the results).

To bind the ...

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