Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit f0986c9

Browse files
committed
Commit src
1 parent 4d36865 commit f0986c9

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

src/META-INF/MANIFEST.MF

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Class-Path:
3+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<job xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd" id="simpleBatchlet" restartable="true" version="1.0">
3+
<step id="batchletStep">
4+
<batchlet ref="com.ibm.cicsdev.batch.simpleBatchlet" />
5+
</step>
6+
</job>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* COPYRIGHT LICENSE: This information contains sample code provided in source
3+
* code form. You may copy, modify, and distribute these sample programs in any
4+
* form without payment to IBM for the purposes of developing, using, marketing
5+
* or distributing application programs conforming to the application programming
6+
* interface for the operating platform for which the sample code is written.
7+
*
8+
* Notwithstanding anything to the contrary, IBM PROVIDES THE SAMPLE SOURCE CODE
9+
* ON AN "AS IS" BASIS AND IBM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING,
10+
* BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY,
11+
* SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND ANY WARRANTY OR
12+
* CONDITION OF NON-INFRINGEMENT. IBM SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
13+
* INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
14+
* OPERATION OF THE SAMPLE SOURCE CODE. IBM HAS NO OBLIGATION TO PROVIDE
15+
* MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS OR MODIFICATIONS TO THE SAMPLE
16+
* SOURCE CODE.
17+
*
18+
* (C) Copyright IBM Corp. 2016.
19+
*
20+
* All Rights Reserved. Licensed Materials - Property of IBM.
21+
*/
22+
package com.ibm.cicsdev.batch;
23+
24+
import javax.batch.api.AbstractBatchlet;
25+
26+
import com.ibm.cics.server.Task;
27+
28+
/**
29+
* The batchlet is referenced by simpleBatch.xml and is expected to run in CICS liberty.
30+
*/
31+
public class simpleBatchlet extends AbstractBatchlet {
32+
@Override
33+
public String process() throws Exception {
34+
// Get current task number and output to STDOUT
35+
int myTask = Task.getTask().getTaskNumber();
36+
System.out.println("BATCHLET is working on a CICS enabled thread with task number " + myTask);
37+
return null;
38+
}
39+
}

0 commit comments

Comments
 (0)