Book description
"This book collects an astonishing range of Java RMI material,
suitable for any Java programmer regardless of experience with RMI.
The RMI novice will be able to run RMI programs without excessive
hair-pulling; the accomplished RMI programmer will find enough
techniques and explanations to improve the performance, capability,
or aesthetic quality of his or her code; and the RMI expert will be
able to perform great RMI-based hacks without the JDK source code.
If you're looking at this book because I directed you to it on the
RMI-USERS mailing list, then, yes, you've found the right
one!"
--from the foreword by Adrian Colley, RMI team, Sun Microsystems,
Ireland
"Esmond is one of the long-time RMI 'gurus', accumulating a vast
and deep arsenal of practical knowledge in RMI uses, internals,
tricks and techniques. I am amazed he has packed so much in just
under 300 pages. An effective RMI or Jini developer should
absolutely have this reference in his collection."
--Brian Maso; consultant, DevelopMentor instructor, and Java Pro at
DevX.com"
The definitive guide to remote method invocation in Java.
This book provides an in-depth resource to all features of RMI, building a firm, logical foundation for understanding and applying the RMI technology. It contains detailed information about how to apply RMI to get professional developers and students alike "up and running", while clarifying and extending the official information found in the specification. The authors address many of the real-world issues and unexpected features that you will encounter whilst working with the technology.
All you need to know about:
understanding RMI in the context of Java and object-oriented programming
using RMI to create applications in networked environments ranging from LANs to the Internet
mastering serialization, remote interfaces, clients, the RMI registry, servers, security, and mobile code
applying advanced concepts e.g. activation, socket factories, Internet firewalls, distributed garbage collection, and design patterns
working with alternatives or extensions to the standard RMI implementation e.g., JNDI naming services and CORBA IIOP.
Features:
Complete RMI Alamanac lift-out
Extensive code samples and exercises
0201700433B07022001
Table of contents
- Copyright
- List of Tables
- List of Figures
- List of Examples
- Foreword
- Preface
- 1. Introduction to RMI
- 2. Characteristics of RMI
-
3. Serialization
- 3.1. In this chapter
- 3.2. Introduction
- 3.3. Essentials
- 3.4. Serialization in depth
- 3.5. The serialization process
- 3.6. The Serializable interface
- 3.7. The Externalizable interface
- 3.8. MarshalledObject
- 3.9. Class versioning
- 3.10. Serial Version UID
- 3.11. Alternative approaches to versioning
- 3.12. Advanced facilities in Serialization
- 3.13. javadoc and serialization
- 3.14. Improving the performance of Serialization
- 3.15. Exercises
- 4. Remote interfaces
- 5. RMI clients
- 6. Naming I—RMI registry
- 7. Servers I—unicast servers
- 8. Security I—execution
- 9. Mobile code
-
10. Servers II—activation
- 10.1. In this chapter
- 10.2. Introduction
- 10.3. First principles—activation
- 10.4. How it works
- 10.5. Writing an activatable server
- 10.6. Registration
- 10.7. Building an activatable server
- 10.8. Run-time setup
- 10.9. Activation and the Unreferenced interface
- 10.10. Which servers should be activatable
- 10.11. The activation system as an RMI registry
- 10.12. Debugging
- 10.13. Activation groups in Win32
- 10.14. Activation clients
- 10.15. Remarks on the Activation Package
- 10.16. Exercises
- 11. Socket factories
-
12. Agents and patterns
- 12.1. In this chapter
- 12.2. Introduction
- 12.3. Mobile agents
- 12.4. Callbacks
- 12.5. Mobile servers
- 12.6. Agents and design patterns
- 12.7. Adapter
- 12.8. Proxy
- 12.9. Client-server patterns
- 12.10. Singleton
- 12.11. Remote factory
- 12.12. Abstract remote
- 12.13. Session
- 12.14. Exercises
- 12.15. Remarks on the examples and exercises
- 13. Naming II—JNDI and Jini
-
14. Servers III—RMI/IIOP
- 14.1. In this chapter
- 14.2. Introduction
- 14.3. RMI/IIOP and CORBA
- 14.4. RMI/IIOP and Enterprise Java Beans
- 14.5. PortableRemoteObject
- 14.6. Writing the server
- 14.7. Building the server
- 14.8. Java/IDL tool
- 14.9. Supporting both JRMP and IIOP
- 14.10. Restrictions
- 14.11. Implementing the service in another language
- 14.12. IIOP clients
- 14.13. Implementing the client in another language
- 14.14. Exercises
- 15. RMI through firewalls
- 16. Security II—the conversation
- 17. Servers IV—beyond unicast
- 18. Selected further topics
-
A. Exceptions in RMI
- A.1. Class hierarchy
- A.2. Exceptions in RMI servers
- A.3. Exceptions in RMI clients
-
A.4. Alphabetic list of exceptions
- A.4.1. java.rmi.AccessException
- A.4.2. java.rmi.activation.ActivationException
- A.4.3. java.rmi.activation.ActivateFailedException
- A.4.4. java.rmi.AlreadyBoundException
- A.4.5. java.lang.ClassCastException
- A.4.6. java.lang.ClassNotFoundException
- A.4.7. java.rmi.ConnectException
- A.4.8. java.rmi.ConnectIOException
- A.4.9. java.rmi.server.ExportException
- A.4.10. java.rmi.MarshalException
- A.4.11. java.rmi.NoClassDefFoundError
- A.4.12. java.rmi.NoSuchObjectException
- A.4.13. java.rmi.NotBoundException
- A.4.14. java.rmi.RemoteException
- A.4.15. java.rmi.RMISecurityException
- A.4.16. java.lang.SecurityException
- A.4.17. java.rmi.server.ServerCloneException
- A.4.18. java.rmi.ServerError
- A.4.19. java.rmi.ServerException
- A.4.20. java.rmi.server.ServerNotActiveException
- A.4.21. java.rmi.ServerRuntimeException
- A.4.22. java.rmi.server.SkeletonMismatchException
- A.4.23. java.rmi.server.SkeletonNotFoundException
- A.4.24. java.rmi.server.SocketSecurityException
- A.4.25. java.rmi.StubNotFoundException
- A.4.26. java.rmi.UnexpectedException
- A.4.27. java.rmi.activation.UnknownGroupException
- A.4.28. java.rmi.UnknownHostException
- A.4.29. java.rmi.activation.UnknownObjectException
- A.4.30. java.rmi.UnmarshalException
- A.5. Remarks on exceptions in RMI
- B. System properties
- C. References
- D. Glossary
Product information
- Title: java.rmi: The Remote Method Invocation Guide
- Author(s):
- Release date: July 2001
- Publisher(s): Pearson Business
- ISBN: 9780201700435
You might also like
book
Advanced JavaServer Pages™
Design and implement flexible, extensible, and maintainable applications with servlets and JSP technology Master powerful authentication …
book
J2EE™ Platform Web Services
Build robust, scalable, end-to-end business solutions with J2EE™ Web Services. This is the definitive practitioner's guide …
book
J2EE™ and JAX™: Developing Web Applications and Web Services
Learn J2EE and the JAX APIs for Web services and applications—all in one volume. The first …
book
Core Java™ Data Objects
The experienced Java developer's guide to persistence with JDO! Master JDO, the breakthrough technology for persistenting …