{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

O'Reilly - Java - Distributed Computing - Using the...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Using the Examples in Applets (Java Distributed Computing
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Table of Contents Appendix A. Using the Examples in Applets .................................................................................................... 1 A.1. Whiteboard Applet ........................................................................................................................................ 1 A.2. Class Downloads ........................................................................................................................................... 6 Appendix B. CORBA Services ........................................................................................................................... 7 B.1. Naming Service ............................................................................................................................................. 7 B.1.1. Comparison to the RMI Registry ............................................................................................................... 8 B.2. Event Service ................................................................................................................................................. 9 B.2.1. Quality of Service for Channels ............................................................................................................... 11 B.2.2. Interface Specifics .................................................................................................................................... 11 B.2.3. Comparison to the Java Event Model ...................................................................................................... 12 B.3. Security Service ........................................................................................................................................... 13 B.3.1. Service Types .............................................................................................................................. 13 B.3.2. Security Model ............................................................................................................................ 14 B.3.3. Comparison to the Java Security API ......................................................................................... 15 B.4. Other Key CORBA Services ....................................................................................................................... 16 Appendix C. JavaSpaces .................................................................................................................................. 17 C.1. Overview of JavaSpaces .............................................................................................................................. 17 C.2. Entry and EntryRep ..................................................................................................................................... 19 C.3. Transactions ................................................................................................................................................ 20 C.4. The JavaSpace Interface .............................................................................................................................. 20 C.4.1. write() .......................................................................................................................................... 21 C.4.2. read() ........................................................................................................................................... 21 C.4.3. take() ............................................................................................................................................ 21 C.4.4. notify() ......................................................................................................................................... 21 C.4.5. renew() ........................................................................................................................................ 22 C.4.6. cancel() ........................................................................................................................................ 22 Appendix D. RMI Quick Reference ................................................................................................................ 23 D.1. The java.rmi Package .................................................................................................................................. 23 D.2. The java.rmi.registry Package ..................................................................................................................... 29 D.3. The java.rmi.server Package ....................................................................................................................... 31 Preface ................................................................................................................................................................ 40 0.1. What Does This Book Cover? ........................................................................................................ 41 0.1.1. Organization .................................................................................................................... 41 0.2. Who Should Read This Book? ........................................................................................................ 42 0.3. About the Source Code ................................................................................................................... 43 0.4. Conventions Used in This Book ..................................................................................................... 44 0.5. Acknowledgments ........................................................................................................................... 45 1.1. Anatomy of a Distributed Application ............................................................................................ 46 1.2. Requirements for Developing Distributed Applications ................................................................. 47 1.2.1. Partitioning and Distributing Data and Functions .......................................................... 48 1.2.2. Flexible, Extendible Communication Protocols ............................................................. 48 1.2.3. Multithreading Requirements ......................................................................................... 49 1.2.4. Security Issues ................................................................................................................ 49 1.3. What Does Java Provide? ............................................................................................................... 49 1.3.1. Object-Oriented Environment ........................................................................................ 50 1.3.2. Abstract Interfaces .......................................................................................................... 50 1.3.3. Platform Independence ................................................................................................... 51 1.3.4. Fault Tolerance Through Exception Handling ............................................................... 51 Using the Examples in Applets (Java Distributed Computing) i
Background image of page 2
Table of Contents Preface 1.3.5. Network Support ............................................................................................................. 51 1.3.6. Security ........................................................................................................................... 52 1.3.6.1. Runtime environment .................................................................................................. 58 1.3.6.2. Secure remote transactions .......................................................................................... 59 1.3.7. Multithreading Support ................................................................................................... 59 2.1. Sockets and Streams ....................................................................................................................... 60 2.1.1. IP Addressing .................................................................................................................. 62 2.1.2. Your Basic Socket .......................................................................................................... 62 2.1.3. Multicast Sockets ............................................................................................................ 62 2.1.4. Streams, Readers, and Writers for Input and Output ...................................................... 63 2.2.1. When and Where Are URLs Practical? .......................................................................... 64 2.2. URLs, URLConnections, and ContentHandlers ............................................................................. 65 2.3. The ClassLoader ............................................................................................................................. 72 2.3.1. Loading Classes from the Network ................................................................................ 74 3.1. Why Distribute Objects? ................................................................................................................. 74 3.2. What's So Tough About Distributing Objects? ............................................................................... 75 3.2.1. Creating Remote Objects ................................................................................................ 80 3.2.2. Remote Method Calls ..................................................................................................... 80 3.2.3. Other Issues ..................................................................................................................... 81 3.3.1. Object Interface Specification ........................................................................................ 81 3.3.2. Object Manager ............................................................................................................... 82 3.3.3. Registration/Naming Service .......................................................................................... 84 3.3.4. Object Communication Protocol .................................................................................... 85 3.3.5. Development Tools ......................................................................................................... 86 3.3.6. Security ........................................................................................................................... 87 3.3. Features of Distributed Object Systems .......................................................................................... 87 3.4. Distributed Object Schemes for Java .............................................................................................. 87 3.5. CORBA ........................................................................................................................................... 88 3.5.1. The Object Request Broker (ORB) ................................................................................. 88 3.5.2. The Interface Definition Language (IDL) ...................................................................... 88 3.5.3. Server Implementations .................................................................................................. 90 3.5.4. Client Stubs ..................................................................................................................... 91 3.5.5. A CORBA Solver ........................................................................................................... 91 3.5.5.1. The IDL interface ......................................................................................................... 92 3.5.5.2. The client stubs ............................................................................................................ 93 3.5.5.3. The server skeleton and implementation ..................................................................... 93 3.5.5.4. The Solver client .......................................................................................................... 93 3.5.5.5. Pulling it all together .................................................................................................... 94 3.6. Java RMI ......................................................................................................................................... 96 3.6.1. Remote Object Interfaces ................................................................................................ 99 3.6.2. Server Implementations .................................................................................................. 99 3.6.3. The RMI Registry ......................................................................................................... 100 3.6.4. Client Stubs and Server Skeletons ................................................................................ 101 3.6.5. Registering and Using a Remote Object ....................................................................... 101 3.6.6. Serializing Objects ........................................................................................................ 101 3.6.7. An RMI Solver .............................................................................................................. 102 3.7. RMI vs. CORBA ........................................................................................................................... 102 3.7.1. The Language Barrier: Advantage or Disadvantage? ................................................... 103 3.7.2. Other Differences .......................................................................................................... 103 3.7.3. The Bottom Line ........................................................................................................... 108 4.1. Thread and Runnable
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}