The Importance of Messaging

When you think of two software components communicating, you usually think in terms of one object invoking a method on another object. You can, however, think of a method invocation as one object sending a message to another. For instance, when you call getName on a Person object, you are sending a message to the Person saying "Hey! Tell me who you are!" In general, system designers like to think in terms of messages between objects—method calls are just one way to implement messages.

Method invocations work well on a small scale, and they are useful even for a distributed system. As you deal with larger systems, method calls (both local and remote) start to cause problems. Many times you need to connect two components ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.