Skip to content

Commit ff937f8

Browse files
Review changes.
* Improved exception handling logic to use the base CicsException. * Renamed the CJLL transaction to WLPH to avoid the CICS reservered prefix. * Clean code: - Use constants to avoid magic strings. - Improve logic flows and avoid repeated calls. - General code quality improvements. * Updated links in the README. * Fixed names in WLPH transaction definition. * Added instructions for running the WLPH transaction.
1 parent 5f421e4 commit ff937f8

File tree

23 files changed

+269
-82
lines changed

23 files changed

+269
-82
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ CECI LINK PROG(HELLOWLP) CHANNEL(CHAN)
150150

151151
(ensure both commands are entered in the same CECI session).
152152

153-
## Find out more
154-
For more information on invoking Java EE applications in a Liberty JVM server from CICS programs see [this article](https://developer.ibm.com/cics/2016/11/14/link-to-liberty-now-available-in-cics-ts-v5-3/).
153+
Alternatively, the enterprise Java program can be run using the provided `WLPH` transaction.
155154

156-
## License
157-
This project is licensed under [Apache License Version 2.0](LICENSE).
155+
## Find out more
156+
For more information about invoking Java EE applications in a Liberty JVM server from CICS programs, see [Linking to Java applications in a Liberty JVM server by using the @CICSProgram annotation](https://www.ibm.com/docs/en/cics-ts/6.1?topic=djariljs-linking-java-applications-in-liberty-jvm-server-by-using-cicsprogram-annotation).
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/.apt_generated/
22
/build/
3+
/.apt_generated_tests/
4+
/bin/
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>cics-java-liberty-link-app</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.wst.validation.validationbuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
<buildCommand>
29+
<name>org.eclipse.m2e.core.maven2Builder</name>
30+
<arguments>
31+
</arguments>
32+
</buildCommand>
33+
</buildSpec>
34+
<natures>
35+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
36+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
37+
<nature>org.eclipse.jdt.core.javanature</nature>
38+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
39+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
40+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
41+
</natures>
42+
</projectDescription>

cics-java-liberty-link-app/.settings/.jsdtscope

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
arguments=
2+
auto.sync=false
3+
build.scans.enabled=false
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5+
connection.project.dir=
6+
eclipse.preferences.version=1
7+
gradle.user.home=
8+
java.home=
9+
jvm.arguments=
10+
offline.mode=false
11+
override.workspace.settings=false
12+
show.console.view=false
13+
show.executions.view=false
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
eclipse.preferences.version=1
22
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4-
org.eclipse.jdt.core.compiler.compliance=1.7
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.compliance=1.8
55
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
66
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
77
org.eclipse.jdt.core.compiler.processAnnotations=enabled
8-
org.eclipse.jdt.core.compiler.source=1.7
8+
org.eclipse.jdt.core.compiler.source=1.8
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
2-
<wb-module deploy-name="com.ibm.cics.server.examples.wlp.link">
3-
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
4-
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
2+
3+
4+
5+
<wb-module deploy-name="cics-java-liberty-link-app">
56
<wb-resource deploy-path="/WEB-INF/classes" source-path="/.apt_generated"/>
6-
<property name="java-output-path" value="/com.ibm.cics.server.examples.wlp.link/build/classes"/>
7-
<property name="context-root" value="com.ibm.cics.server.examples.wlp.link"/>
7+
<wb-resource deploy-path="/WEB-INF/classes" source-path="/.apt_generated_tests"/>
8+
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
9+
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
10+
11+
12+
13+
<property name="java-output-path" value="/cics-java-liberty-link-app/build/classes"/>
14+
15+
<property name="context-root" value="cics-java-liberty-link-app"/>
16+
17+
18+
819
</wb-module>
9-
</project-modules>
20+
21+
22+
23+
</project-modules>

cics-java-liberty-link-app/.settings/org.eclipse.wst.common.project.facet.core.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
<fixed facet="wst.jsdt.web"/>
66
<installed facet="jst.web" version="3.0"/>
77
<installed facet="wst.jsdt.web" version="1.0"/>
8-
<installed facet="java" version="1.7"/>
8+
<installed facet="java" version="1.8"/>
99
</faceted-project>

cics-java-liberty-link-app/.settings/org.eclipse.wst.jsdt.ui.superType.container

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)