Show TOC Start of Content Area

Background documentation Creating and Scheduling Your First Job  Locate the document in its SAP Library structure

Use

This section guides you by example through the steps you need to complete to develop and deploy a job definition, as well as to create a scheduler task for this job definition by using the Scheduler API.

Prerequisites

You are familiar with the following sections:

      Scheduler Job Definition, Job, and Task

      Developing and Scheduling Jobs

Process

To develop and schedule a job, you need to complete the steps outlined below:

Developing and Deploying the Job Definition

...

       1.      Develop the source code of the JobBean class.

       2.      In the ejb-j2ee-engine.xml deployment descriptor, set the correct JMS destination name and connection factory name.

       3.      Create a job-definition.xml descriptor for the JobBean.

       4.      In the j2ee-engine.xml deployment descriptor, set a runtime reference to the APIs of the NetWeaver Scheduler for Java, as well as mark up the job application to identify it as a job.

       5.      Build the project.

       6.      Deploy the EAR file on the server.

Scheduling a Job Definition

From within an application deployed on AS Java:

       1.      Get a JNDI reference to the scheduler.

       2.      Create and schedule a scheduler task for job definition.

For the step-by-step tutorial on developing and scheduling a job, see Hello Job.

 

 

End of Content Area