6.2. Service Composition
In the event section, we saw how two services can communicate with each other by means of sending simple, free-formatted messages — events. Through these messages, the Airline service communicated the trip planning query to the Hotel Information service so that the Hotel service could send the trip planner a promotional offer. From a user’s perspective, there were two services that catered to his or her needs. Certain characteristics of this event-based interaction are worth noting:
The two services were loosely coupled. The Airline and Hotel services had no visibility of each other’s implementation detail.
The level of interaction between the two services in this case was limited to a certain event that contained some ...
Get Web Services: A Java™ Developer’s Guide Using E-Speak 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.