1、- 1 - 外文原文 BEAWebLogic The Timer and Work Manager API This document provides an overview of the Timer and Work Manager API and demonstrates how to implement it within an application. “Description of the Timer and Work Manager API” on page 1 “Overview of the Timer API” on page 2 “Using the Timer API”
2、 on page 3 “Using the Job Scheduler” on page 6 “Description of the Work Manager API” on page 9 “Work Manager Example” on page 11 Description of the Timer and Work Manager API The Timer and Work Manager API is defined in a specification created jointly by BEA Systems and IBM. This API enables concurr
3、ent programming of EJBs and Servlets within a Java EE application. This API is often referred to as CommonJ. The CommonJ API contains the following components: Timer API The Timer API allows applications to schedule and receive timer notification callbacks for a specific listener defined within an a
4、pplication. Timers allow you to schedule and perform work at specific times or intervals. See “Overview of the Timer API” on page 2. Timer and Work Manager API Programmer Guide The Timer and Work Manager API You implement this API by importing the commonj.timer package. Work Manager API The Work Manager API allows an application to prioritize work within an EJB or Servlet. Applications can programmatically execute multiple work items within a container. - 2 - See “Descri