Deployment Descriptors

Definition

Files in XML format that provide metadata for the JobBean. A JobBean has the following deployment descriptors:

  • ejb-j2ee-engine.xml and application-j2ee-engine.xml which are the deployment descriptors for message-driven beans.

  • job-definition.xml , which is a JobBean-specific deployment descriptor.

Structure

  • ejb-j2ee-engine.xml

    Specifies the destination name and connection factory name that the JobBean uses. The destination name is JobQueue , and the connection factory name is JobQueueFactory .

    The sample below shows the ejb-j2ee-engine.xml deployment descriptor for a HelloWorld job definition whose JobBean class is named HelloWorldBean .

  • application-j2ee-engine.xml

    Incorporates a reference to the APIs of the SAP NetWeaver Scheduler for Java containing the JobContext and MDBJobImplementation classes. In addition, this deployment descriptor uses a <modules additional> element, which identifies the application you deploy on the server as a job.

    The sample below shows the application-j2ee-engine.xml deployment descriptor for a HelloWorld job definition, created in an EJB project named HelloWorldProject .

The value of <entry name> is the name of the JAR file containing the JobBean class.

  • job-definition.xml

    An additional deployment descriptor of JobBeans, which contains purely job-specific meta information. It specifies:

    • The job name and description

      Free text name and description of the job.

    • The names and properties of job parameters .

    • The job default retention period

      The retention period determines the number of days, for which the job logs are persisted in the database.

    The sample below shows the job-definition.xml deployment descriptor for a job definition with name HelloWorld that only logs a Hello World! message and has no job parameters.

    The job definition name has to be identical with the value of the message selector specified in the JobBean class .

    For more information about the Document Type Definition of the job-definition.xml , see Job-definition.dtd .