This book is a comprehensive guide to Java distributed computing. It assumes the reader is an experienced Java programming, but has little experience with network programming and distributed objects. This book covers networking, distributed computing architectures, advanced Java facilities, security, data management, and specific distributed computing techniques including sockets, Remote Method Invocation (RMI), Java servlets, Microsoft's Distributed Component Model (DCOM), and the Common Object Request Broker Architecture (CORBA). This book covers all these protocols, gives advice on when to use each protocol, and demonstrates how they work (or don't work) together. Comprehensive and professional approach to building Java distributed objects with CORBA/IIOP, RMI, IDL, and COM/DCOM Extremely practical, hands-on book that contains concise descriptions of the theory, complete applications, and thousands of lines of proven, real-world Java code Authors Bill McCarty and Luke Cassady-Dorion have 28 years of combined professional programming experience in the field of distributed objects.
Table of Contents:
Chapter 1: Distributed Object Computing ..... 11
Chapter 2: TCP/IP Networking ..... 21
Chapter 3: Object-Oriented Analysis and Design ..... 49
Chapter 4: Distributed Architectures ..... 69
Chapter 5: Design Patterns ..... 93
Chapter 6: The Airline Reservation System Model ..... 17
Part II: Java ..... 137
Chapter 7: Java Overview ..... 139
Chapter 8: Java Threads ..... 171
Chapter 9: Java Serialization and Beans ..... 193
Part III: Java's Networking and Enterprise APIs ..... 219
Chapter 10: Security ..... 221
Chapter 11: Relational Databases and Structured Query Language (SQL) ..... 247
Chapter 12: Java Database Connectivity (JDBC) ..... 269
Chapter 13: Sockets ..... 293
Chapter 14: Socket-Based Implementation of the Airline Reservation System ..... 319
Chapter 15: Remote Method Invocation (RMI) ..... 337
Chapter 16: RMI-Based Implementation of the Airline Reservation System ..... 361
Chapter 17: Java Help, Java Mail, and Other Java APIs ..... 377
Part IV: Non-CORBA Approaches to Distributed Computing ..... 395
Chapter 18: ServIets and Common Gateway Interface (CGI) ..... 397
Chapter 19: ServIet-Based Implementation of the Airline Reservation System ..... 421
Chapter 20: Distributed Component Object Model (DCOM) ..... 433
Part V: The CORBA Approach to Distributed Computing ..... 495
Chapter 21: CORBA Overview ..... 497
Chapter 22: CORBA Architecture ..... 511
Chapter 23: Survey of CORBA ORBs ..... 545
Chapter 24: A CORBA Server ..... 561
Chapter 25: A CORBA Client ..... 581
Chapter 26: CORBA-Based Implementation of the Airline Reservation System ..... 617
Chapter 27: Quick CORBA: CORBA Without IDL ..... 635
Part VI: Advanced CORBA ..... 667
Chapter 28: The Portable Object Adapter (POA) ..... 669
Chapter 29: Internet Inter-ORB Protocol (HOP) ..... 681
Chapter 30: The Naming Service ..... 693
Chapter 31: The Event Service ..... 715
Chapter 32: Interface Repository, Dynamic Invocation, Introspection, and Reflection ..... 743
Chapter 33: Other CORBA Facilities and Services ..... 767
Part VII: Agent Technologies ..... 787
Chapter 34: Voyager Agent Technology ..... 789
Chapter 35: Voyager-Based Implementation of the Airline Reservation System ..... 805
Part VIII: Summary and References ..... 827
Chapter 36: Summary ..... 829
Appendices
Appendix A: Useful Resources ..... 849
Appendix B: Quick References ..... 857
Appendix C: How to Get the Most from the CD-ROM ..... 893
Index ..... 901