Create New Jobs and Schedule Existing Ones with Java Scheduler in SAP NetWeaver AS Java

  • by Robert Heidasch, Chief Innovation and Technology Lead, Accenture
  • June 22, 2011
Review how to work with Java Scheduler functionality provided by SAP NetWeaver Application Server Java 7.00 or higher. This shows you how to schedule already-existing background processes (i.e., jobs defined in deployed Java-based business applications). Additionally, walk through the creation steps of the new job that is provided by a custom-provided business application. The description of particular steps contains an example Java message-driven bean class and required job configuration.
Key Concept
SAP NetWeaver Scheduler Java (Java Scheduler), integrated in SAP NetWeaver Application Server Java, allows the scheduling of jobs (background processes) using time-based and event-based conditions. Job definition consists of Java message-driven beans and job configuration (job metadata). The Java message-driven bean contains the Java program implementing business logic and the job configuration contains default configuration defined by the job provider.

The user-related planning and execution of processes running in the background are key functionalities in modern business applications. SAP NetWeaver Application Server Java (SAP NetWeaver AS Java) offers all business applications SAP NetWeaver Scheduler Java (Java Scheduler) — an integrated infrastructure service that supports the configuration and execution of background business processes.

The main idea and functionality of Java Scheduler is similar to ABAP Scheduler, the ABAP-based job scheduler (see transactions SM36 and SM37 in SAP NetWeaver AS ABAP). Java Scheduler allows the scheduling of jobs using time- and event-based conditions. The time-based conditions are used for jobs starting and running after the scheduled date and time are fulfilled. Using event-based conditions allows the definition of an event that triggers the start or run of the particular job in the system.

In SAP NetWeaver AS Java 7.00 and later, you can define the event-based job scheduling by external schedulers that are integrated with Java Scheduler. The integration is done using the Java eXternal Batch Processing (JXBP) API. The detailed description of the functionality is outside the scope of this article.

Because SAP NetWeaver AS Java implements an object-oriented architectural approach, Java Scheduler uses the same approach in developing jobs. This means the business application provider defines one or many jobs based on Java message-driven beans (classes written in Java that allow you to encapsulate many objects into a single object) that implement the business process or logic in the background process. I’ll present example configuration and implementation of a Java message-driven bean that defines a background business process and is integrated with Java Scheduler.

Robert Heidasch

Robert is the chief innovation and technology lead in the global Accenture Technology Platform, which is responsible for SAP Leonardo and the new digital technology defining business value and driving the digital transformation of complex enterprise solution for Accenture diamond and strategic clients. Before that he was responsible as innovation and solution lead for the design and architecture of new business applications developed jointly by Accenture and SAP based on the newest SAP and non-SAP technology. Robert is the Accenture certified Senior Digital Architect and Senior Technology Architect. He is coauthor and trainer of a couple of SAP technology-related trainings for the in-memory platform and architecture of new business applications (e.g., SAP HANA, SAP Cloud Platform, and SAP Leonardo applications for solution architects and technical architects, all of which were provided by Accenture in Europe, the US, and Asia). Robert has more than 23 years’ experience designing and developing IT systems. He published several technical and business articles about SOA, SAP NetWeaver and its integration with non-SAP systems (e.g. Microsoft, Oracle, etc.), and SAP HANA technology. He is also an inventor of 38 patents in the US in the area of in-memory technology, artificial intelligence and machine learning, security, semantics, and SOA. He is a frequent speaker in international business conferences and SAP Forum. He is a subject matter expert in customer projects worldwide and has extended experience in team leadership in Europe, the US, and India.

See more by this author


No comments have been submitted on this article. 

Please log in to post a comment.

To learn more about subscription access to premium content, click here.