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

  • by Robert Heidasch, Senior Manager/Senior Principal, 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.

Note
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 Heidasch is senior manager/senior principal in the Accenture & SAP Business Solution Group, which designs and develops new business solutions and applications provided jointly by Accenture and SAP based on the newest SAP technology. He is co-author and trainer of a couple of SAP technology-related areas (e.g., SAP HANA solution architect, SAP HANA technical architect, Business Suite on SAP HANA, and SAP HANA as a development platform delivered in Europe, US, and Asia). Robert has more than 21 years’ experience designing and developing IT systems. He has published several technical and business articles about SOA, SAP NetWeaver and its integration with non-SAP systems (e.g., Microsoft and Oracle), and SAP HANA technology. Robert is also an inventor of 18 patents granted in the US--for example, Ranking in Cascading Learning Systems, Learnable Contextual Network, Machine Learning for a Memory-Based Database, Modular Secure Data Transfer, Managing Software Component Versions within a Service Oriented Architecture, Machine Learning for a Memory-based Database, Adaptive and Secure Modular Connection, and Asynchrony Debugging Using Web Services Interface.
 

See more by this author


Comments

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.