Show TOC Start of Content Area

Procedure documentation Editing the application-j2ee-engine.xml  Locate the document in its SAP Library structure

Use

A JobBean needs a runtime reference to the APIs of the NetWeaver Scheduler for Java which contain the JobContext and MDBJobImplementation classes. This procedure tells you how to add the runtime reference to the HelloJobProjectEAR.

Procedure

...

       1.      In the Project Explorer, from the META-INF folder of the HelloJobProjectEAR, open the application-j2ee-engine.xml file.

       2.      Update the file as shown below.

You have to add a reference to the Scheduler API, which contains the JobContext and MDBJobImplementationclasses. In addition, with the <modules additional> element you identify the application as a job.

The value of <entry name>is the name of the JAR file containing the JobBean class. You can compose the name of the JAR from the name of the EJB project – HelloJobProject, and the file extension .jar.

Syntax

<?xml version="1.0" encoding="UTF-8"?>

<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <provider-name>sap.com</provider-name>

  <reference reference-type="hard">

    <reference-target provider-name="sap.com" target-type= "service">

           scheduler~runtime

    </reference-target>

  </reference>

  <modules-additional>

    <module>

      <entry-name>HelloJobProject.jar</entry-name>

      <container-type>scheduler~container</container-type>

    </module>

  </modules-additional>

</application-j2ee-engine>

       3.      Save the file.

Next Step

Deploying the HelloJob

 

End of Content Area