Skip to content

Commit e8695f8

Browse files
Upgrade to CICS TS 6.1
1 parent 83f0c93 commit e8695f8

File tree

7 files changed

+32
-28
lines changed

7 files changed

+32
-28
lines changed

.github/workflows/java.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build
22

33
on:
44
push:
5-
branches: ["cicsts/v5.5"]
5+
branches: ["cicsts/v6.1"]
66
pull_request:
7-
branches: ["cicsts/v5.5"]
7+
branches: ["cicsts/v6.1"]
88
schedule:
99
- cron: '0 0 * * *'
1010

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
eclipse.preferences.version=1
2-
org.eclipse.jdt.apt.aptEnabled=false
2+
org.eclipse.jdt.apt.aptEnabled=true
3+
org.eclipse.jdt.apt.genSrcDir=target/generated-sources/annotations
4+
org.eclipse.jdt.apt.genTestSrcDir=target/generated-test-sources/test-annotations

cics-java-osgi-jdbc-app/.settings/org.eclipse.jdt.core.prefs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ org.eclipse.jdt.core.compiler.compliance=1.8
44
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
55
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
66
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
7-
org.eclipse.jdt.core.compiler.processAnnotations=disabled
7+
org.eclipse.jdt.core.compiler.processAnnotations=enabled
88
org.eclipse.jdt.core.compiler.release=disabled
99
org.eclipse.jdt.core.compiler.source=1.8

cics-java-osgi-jdbc-app/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ plugins {
33
}
44

55
dependencies {
6-
compileOnly enforcedPlatform("com.ibm.cics:com.ibm.cics.ts.bom:5.5-20200519131930-PH25409")
6+
annotationProcessor enforcedPlatform("com.ibm.cics:com.ibm.cics.ts.bom:6.1-20220617120000")
7+
annotationProcessor 'com.ibm.cics:com.ibm.cics.server.invocation'
8+
compileOnly enforcedPlatform("com.ibm.cics:com.ibm.cics.ts.bom:6.1-20220617120000")
79
compileOnly 'com.ibm.cics:com.ibm.cics.server'
810
}
911

cics-java-osgi-jdbc-app/src/main/java/com/ibm/cicsdev/java/osgi/jdbc/JDBCQueryProgram.java

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import com.ibm.cics.server.Task;
1414
import com.ibm.cics.server.Terminal;
15+
import com.ibm.cics.server.invocation.CICSProgram;
1516
import com.ibm.cicsdev.java.osgi.jdbc.data.Employee;
1617

1718
/**
@@ -60,26 +61,14 @@ private static Connection openConnection() throws SQLException
6061
return conn;
6162
}
6263

63-
/**
64-
* Entry point of the CICS program.
65-
*
66-
* @param args
67-
* Unused
68-
* @throws SQLException
69-
* If Db2 interaction fails.
70-
*/
71-
public static void main(String[] args) throws SQLException
72-
{
73-
// Create the channel and container.
74-
Task task = Task.getTask();
75-
76-
JDBCQueryProgram app = new JDBCQueryProgram(task);
77-
app.run();
78-
}
79-
8064
/** The current CICS task */
8165
private final Task task;
8266

67+
public JDBCQueryProgram()
68+
{
69+
this(Task.getTask());
70+
}
71+
8372
/**
8473
* Creates a new instance of the JDBC query program.
8574
* <p>
@@ -110,6 +99,7 @@ public JDBCQueryProgram(Task task)
11099
*
111100
* @throws SQLException
112101
*/
102+
@CICSProgram("CDEVJODB")
113103
public void run() throws SQLException
114104
{
115105
// Query the database for the employees
@@ -119,7 +109,7 @@ public void run() throws SQLException
119109
boolean isTerminal = principalFacility != null && principalFacility instanceof Terminal;
120110

121111
// Print the employees in tabular format to the terminal.
122-
try (PrintWriter out = task.out)
112+
try (PrintWriter out = task.getOut())
123113
{
124114
out.println();
125115

cics-java-osgi-jdbc-bundle/src/main/bundleParts/CDEVJODB.program

Lines changed: 0 additions & 4 deletions
This file was deleted.

pom.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<dependency>
3939
<groupId>com.ibm.cics</groupId>
4040
<artifactId>com.ibm.cics.ts.bom</artifactId>
41-
<version>5.5-20200519131930-PH25409</version>
41+
<version>6.1-20220617120000</version>
4242
<scope>import</scope>
4343
<type>pom</type>
4444
</dependency>
@@ -59,6 +59,20 @@
5959
<build>
6060
<pluginManagement>
6161
<plugins>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-compiler-plugin</artifactId>
65+
<version>3.13.0</version>
66+
<configuration>
67+
<annotationProcessorPaths>
68+
<annotationProcessorPath>
69+
<groupId>com.ibm.cics</groupId>
70+
<artifactId>com.ibm.cics.server.invocation</artifactId>
71+
<version>6.1</version>
72+
</annotationProcessorPath>
73+
</annotationProcessorPaths>
74+
</configuration>
75+
</plugin>
6276
<plugin>
6377
<groupId>com.ibm.cics</groupId>
6478
<artifactId>cics-bundle-maven-plugin</artifactId>

0 commit comments

Comments
 (0)