Event Service
The Event Service provides a flexible framework for asynchronous interaction between distributed objects. The asynchronous method invocation facility provided by the Dynamic Invocation Interface is a very basic form of the services that the Event Service provides. These kinds of asynchronous communications can be useful in situations where notification, rather than interaction, is needed. You may want your client to be notified when data in a dynamically updated database is updated, for example. The Event Service provides a framework for setting up these communications channels.
Agents engaged in Event Services are distinguished as event consumers
or event suppliers -- in both cases they can either engage in push
or pull event communications. These four cases are represented by the
PushConsumer
, PullConsumer
,
PushSupplier
and
PullSupplier
interfaces. Event communications
take place over EventChannels
, to which
consumers and suppliers of events are connected.
Get Java Enterprise in a Nutshell, Second 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.