Develop work objects, event listeners, and asynchronous scopes
Subtopics
- Develop work objects to run code in parallel
We can run work objects in parallel, or in a different Java EE context, by wrapping the code in a work object.
- (dist) Develop event listeners
Application components that listen for events can use the EventSource.addListener() method to register an event listener object (a type of asynchronous bean) with the event source to which the events will be published. An event source also can fire events in a type-safe manner using any interface.
- (zos)(iseries)(dist) Develop asynchronous scopes
Asynchronous scopes are units of scoping that comprise a set of alarms, subsystem monitors, and child asynchronous scopes. We can create asynchronous scopes, starting with the parent.