Skip to Content

When I tried to develop custom job; I spent couple of days without much success. But eventually was able to do with the help of some posting queries, SAP document. But in 7.3, it is bit different. I am posting detailed steps that need to be followed for custom task development and scheduling the same.

1)    1)  Create EJB Project

/wp-content/uploads/2012/08/1_133736.png

1)    2)  Create Scheduler  Job

/wp-content/uploads/2012/08/2_133737.png

/wp-content/uploads/2012/08/3_133738.png

3)  3) After creating Scheduler Job, project structure will look like:

/wp-content/uploads/2012/08/4_133739.png

1)     4)  Only change needed in configuration file: Add following line in ejb-j2ee-engine.xml next to   </ejb-name> tag

<jndi-name>TestJob</jndi-name> 

2)    

        5) Code for scheduled job in onJob() method. Deploy EJB.

3)      6) Login to NWA. Search for Job Scheduler in NWA

/wp-content/uploads/2012/08/5_133740.png

1)       7) Go to job scheduler; which will take you to

/wp-content/uploads/2012/08/6_133741.png

1)      8) We will be able to locate the Custom deployed task in NWAS-Java scheduler /wp-content/uploads/2012/08/7_133745.png

1)      9) Creation of task referring to custom job created/wp-content/uploads/2012/08/8_133746.png

:

       10) Click on Add button and we can select  TestJob created

/wp-content/uploads/2012/08/9_133747.png/wp-content/uploads/2012/08/10_133748.png

           11) If there are any parameters of the job, configure them

           /wp-content/uploads/2012/08/11_133749.png

         12) Types of scheduling:Recurring,  Recon, Simple;

/wp-content/uploads/2012/08/13_133750.png

     We are done with all the steps to be followed for creating and scheduling custom job.

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply