Skip to main content

Remote Method Invocation (RMI)

  • Chapter
  • First Online:
An Introduction to Network Programming with Java
  • 4448 Accesses

Abstract

With all our method calls so far, the objects upon which such methods have been invoked have been local. However, in a distributed environment, it is often desirable to be able to invoke methods on remote objects (i.e., on objects located on other systems). RMI (Remote Method Invocation) provides a platform-independent means of doing just this. Under RMI, the networking details required by explicit programming of streams and sockets disappear and the fact that an object is located remotely is almost transparent to the Java programmer. Once a reference to the remote object has been obtained, the methods of that object may be invoked in exactly the same way as those of local objects. Behind the scenes, of course, RMI will be making use of byte streams to transfer data and method invocations, but all of this is handled automatically by the RMI infrastructure. RMI has been a core component of Java from the earliest release of the language, but has undergone some evolutionary changes since its original specification.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag London

About this chapter

Cite this chapter

Graba, J. (2013). Remote Method Invocation (RMI). In: An Introduction to Network Programming with Java. Springer, London. https://doi.org/10.1007/978-1-4471-5254-5_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-5254-5_5

  • Published:

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-5253-8

  • Online ISBN: 978-1-4471-5254-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics