Introduction

In the previous chapter we were introduced to Java RMI. We reviewed the framework of RMI framework and the interaction between the RMI client and the remote object it is using. But RMI is not limited to simple invocation of objects. As we will demonstrate in this chapter, an RMI remote object can make calls back to the client which invoked it, and it can provide its own registry services or export its remote reference to a naming service other than the default RMI registry.

The RMI implementations we saw in the previous chapter had to be running in order for the client to retrieve the reference for the object and invoke its methods. But for some RMI implementations this may not be the optimal approach. RMI activation, as demonstrated ...

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.