Getting Started with JobServer

JobServer is a powerful and highly scalable environment for scheduling, running and managing jobs and web applications. This document provides a quick overview on how to get started with JobServer.


For additional information on using JobServer refer to these links:



Things you can do with JobServer

  1. Build, schedule, and run Jobs and Workflows
  2. Deploy and run SOA/Mule powered Web 2.0 applications and services

JobServer supports a powerful and flexable developer API called soafaces API. This SDK allows for building Java client and server components that can be run as backend Tasklets and front-end Weblets. JobServer functions as a soafaces container that supports the soafaces specification and API in order to run and Tasklets and Weblets.

To get you started learning about the soafaces SDK for Tasklets and Weblets, we will do two things:

  1. Design a simple Job and Tasklet using some of the built in sample components that come with JobServer.
  2. Build a simple Weblet/Applicaton also using one of the built in sample components that comes with JobServer.

Designing a Job

A Job is composed of one or more Tasklets. Tasklets come packaged in JAR files called Bundles. JobServer comes with several example Tasklets. You can browse the available Tasklets/Bundles by going to the Tasklet/Weblet Component tool found in the JobServer Workbench.

To create a new job, go to the Job Designer and create a new job. In the job you can add one or more Tasklets (packaged as Bundles). After you choose a Tasklet to add, you can then go to the Job Scheduler tool and schedule a one time or reccuring schedule for this new job to run under.

To enable the job to be scheduled, you must make sure that the JobServer Scheduling Engine is up and running. No job can run unless the Scheduling Engine is running. To turn it on go to System Administration --> Start/Stop and startup the Scheduler. Now jobs can be scheduled based on their scheduling rule.

To view the historical run logs for a job or to just search for which jobs have run in the past or are running now, you can use the Job Tracker tool to search for just about anything you want with respected to running jobs. You can for example search for all jobs that have run in the past day that have thrown errors. JobServer captures all Log4J and Java Logging API messages logged by the Tasklet and makes it available for viewing from within Job Tracker. The soafaces SDK lets you optionally customize how to view any input or output used by a Tasklet and job.

Building an Application

An Application in JobServer is composed of a Weblet. The Weblet comes packaged in a Bundle component and is added to an Application to serve as the GUI implementation.

To create a new GUI application, go to the Application Builder and create a new application. There you can select which Weblet Bundle will serve as the implementation for your application.

Once you have created the application, you can access it from any browser using the following URI:      http://<HOSTNAME>:<PORT>/jobserver/app?id=<APPLICATION ID>





Copyright © Grand Logic, Inc. All Rights Reserved.