Skip to content

Commit 8a72247

Browse files
Merge pull request #13 from cicsdev/branch2
Readme paths and other minor changes
2 parents 3c27879 + 70b934d commit 8a72247

File tree

6 files changed

+15
-25
lines changed

6 files changed

+15
-25
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ Sample RESTful web application for deployment to a Liberty JVM server in CICS. T
66
1. `InfoResource` - This queries the JVM server environment using system properties and uses JAXB beans to return a JSON response detailing the CICS environment.
77
1. `ReverseResource` - This is similar to `InfoResource`, but uses the JCICS API to link to the COBOL program `EDUCHAN` using channels and containers. An input string is passed to `EDUCHAN`, which is then reversed and returned, along with the time from CICS.
88

9-
The following Java source components are supplied in the [`src/Java`](src/Java) directory in this repository.
9+
The following Java source components are supplied in the [`src/main/java`](src/main/java) directory in this repository.
1010

1111
## Java package com.ibm.cicsdev.restapp
12-
* [`CICSApplication`](src/Java/com/ibm/cicsdev/restapp/CICSApplication.java) - Sets the `ApplicationPath` for resources in this application
13-
* [`InfoResource`](src/Java/com/ibm/cicsdev/restapp/InfoResource.java) - Returns JSON structure using `CICSInformation` bean
14-
* [`ReverseResource`](src/Java/com/ibm/cicsdev/restapp/ReverseResource.java) - Returns JSON structure using `ReverseResult` bean
12+
* [`CICSApplication`](src/main/java/com/ibm/cicsdev/restapp/CICSApplication.java) - Sets the `ApplicationPath` for resources in this application
13+
* [`InfoResource`](src/main/java/com/ibm/cicsdev/restapp/InfoResource.java) - Returns JSON structure using `CICSInformation` bean
14+
* [`ReverseResource`](src/main/java/com/ibm/cicsdev/restapp/ReverseResource.java) - Returns JSON structure using `ReverseResult` bean
1515

1616

1717
## Java package com.ibm.cicsdev.restapp.bean
18-
* [`CICSEnvironment`](src/Java/com/ibm/cicsdev/restapp/bean/CICSEnvironment.java) - JAXB bean returning JSON structure containing information about CICS product and version
19-
* [`CICSInformation`](src/Java/com/ibm/cicsdev/restapp/bean/CICSInformation.java) - JAXB bean returning JSON structure containing CICS applid, time and JVM server name and instance of `CICSEnvironment`
20-
* [`ReverseResult`](src/Java/com/ibm/cicsdev/restapp/bean/ReverseResult.java) - JAXB bean returning JSON structure containg input and output containers sent to `EDUCHAN` COBOL program
18+
* [`CICSEnvironment`](src/main/java/com/ibm/cicsdev/restapp/bean/CICSEnvironment.java) - JAXB bean returning JSON structure containing information about CICS product and version
19+
* [`CICSInformation`](src/main/java/com/ibm/cicsdev/restapp/bean/CICSInformation.java) - JAXB bean returning JSON structure containing CICS applid, time and JVM server name and instance of `CICSEnvironment`
20+
* [`ReverseResult`](src/main/java/com/ibm/cicsdev/restapp/bean/ReverseResult.java) - JAXB bean returning JSON structure containg input and output containers sent to `EDUCHAN` COBOL program
2121

2222

2323
## Supporting files
2424
* [`DFHCSD.txt`](etc/DFHCSD.txt) - Output from a DFHCSDUP EXTRACT for the CICS BUNDLE resource definition.
25-
* [`EDUCHAN.cbl`](src/Cobol/EDUCHAN.cbl) - A sample CICS COBOL that returns the date and time and reversed input using channels and containers
25+
* [`EDUCHAN.cbl`](src/cobol/EDUCHAN.cbl) - A sample CICS COBOL that returns the date and time and reversed input using channels and containers
2626
* [`build.gradle`](build.gradle) - A sample Gradle build file to enable an automated build of the deployable WAR
2727
* [`pom.xml`](pom.xml) - A sample Maven build file to enable an automated build of the deployable WAR
2828

build.gradle

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ archivesBaseName='cics-java-liberty-restapp'
1212
version = '0.1.0'
1313
sourceCompatibility = '1.8'
1414

15-
apply plugin: 'war'
16-
17-
18-
war {
19-
//set archive name for consistency
20-
archiveFileName='cics-java-liberty-restapp.war'
21-
}
22-
2315
// If in Eclipse, add Javadoc to the local project classpath
2416
eclipse
2517
{
@@ -52,13 +44,13 @@ dependencies
5244
cicsBundlePart files(war)
5345

5446
//JAXB required if compiling with Java 11 or later
55-
//compileOnly ("javax.xml.bind:jaxb-api:2.3.1")
47+
compileOnly ("javax.xml.bind:jaxb-api:2.3.1")
5648
}
5749

5850

5951
// CICS bundle build, CICS bundle build, specify defaultJVMServer value to match CICS JVMSERVER name
6052
cicsBundle {
6153
build {
62-
defaultJVMServer = jvmserver
54+
defaultJVMServer = project.findProperty("jvmserver") ?: "DFHWLP"
6355
}
6456
}

gradle.properties

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

pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@
1717

1818
<build>
1919
<plugins>
20-
<!-- WAR plugin build, set war archive name for consistency -->
20+
<!-- WAR plugin build-->
2121
<plugin>
2222
<groupId>org.apache.maven.plugins</groupId>
2323
<artifactId>maven-war-plugin</artifactId>
2424
<version>3.4.0</version>
2525
<configuration>
26-
<failOnMissingWebXml>false</failOnMissingWebXml>
27-
<warName>cics-java-liberty-restapp</warName>
26+
<failOnMissingWebXml>false</failOnMissingWebXml>
2827
</configuration>
2928
</plugin>
3029

@@ -85,13 +84,13 @@
8584
<scope>provided</scope>
8685
</dependency>
8786

88-
<!--JAXB required if compiling with Java 11 or later
87+
<!--JAXB required if compiling with Java 11 or later -->
8988
<dependency>
9089
<groupId>javax.xml.bind</groupId>
9190
<artifactId>jaxb-api</artifactId>
9291
<version>2.3.1</version>
9392
<scope>provided</scope>
94-
</dependency> -->
93+
</dependency>
9594

9695

9796
</dependencies>

src/main/webapp/WEB-INF/ibm-web-ext.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
66
version="1.0">
77

8-
<context-root uri="cics-java-liberty-restapp" />
8+
<context-root uri="com.ibm.cicsdev.restapp" />
99
<enable-directory-browsing value="false"/>
1010
<enable-serving-servlets-by-class-name value="false" />
1111

0 commit comments

Comments
 (0)