You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

PAGE UNDER CONSTRUCTION

Introduction

This article describes how to implement Java jobs to communicate over a Message Queue (MQ). This includes one Java job for publishing and one for subscribing and receiving.

The document explains which classes have to be created and for which purpose. This example was developed with the use of Apache MQ.

Prerequisites

To write a Java job for the JobScheduler the following dependency is needed.

  • engine-job-api.jar
    • The library is hosted on Maven Central. Please download the jar and add it to the classpath of the Java project. 
    • If your Java project is already a maven project, simply add the following dependency to the project configuration:
      • <dependency>
            <groupId>com.sos-berlin.jobscheduler.engine</groupId>
            <artifactId>engine-job-api</artifactId>
            <version>1.10.3</version>
        </dependency>
      • Make sure to use the correct version suitable for th JobScheduler in use.

For this example the activemq-all-5.13.0.jar library is used.

  • Either download the jar file and add it to your classpath
  • or add the following dependency to the project configuration
    • <dependency>
          <groupId>org.apache.activemq</groupId>
          <artifactId>activemq-all</artifactId>
          <version>5.13.0</version>
      </dependency>
      
      


 

 

 

 

  • No labels