Skip to content

Commit 9e100c1

Browse files
Update readme
1 parent a97d592 commit 9e100c1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
11
# cics-java-liberty-link
22
Samples for Link to Liberty
3+
4+
## Contents
5+
This is a set of sample projects for Link to Liberty, demonstrating how you can invoke a POJO packaged in a WAR in a Liberty JVM server from a CICS program.
6+
7+
- projects/com.ibm.cics.server.examples.wlp.link - Web project
8+
- projects/com.ibm.cics.server.examples.wlp.link.bundle - CICS bundle project
9+
10+
## Deploying the sample
11+
1. Import the projects into CICS Explorer using File -> Import -> General -> Existing projects into workspace.
12+
- If using the egit client, you can just clone the repo and tick the button to import all projects.
13+
2. Change the name of the JVMSERVER in the .warbundle file to a suitable value for your installation.
14+
3. Export the bundle project to zFS by selecting 'Export Bundle project to z/OS Unix File System' from the contxt menu.
15+
4. Ensure the `cicsts:link-1.0` feature is present in server.xml and the JVMSERVER is ENABLED.
16+
5. Create a bundle defintion pointing to the zFS location you just exported to, and install it.
17+
6. Check for the dynamically created PROGRAM resource HELLOWLP.
18+
19+
## Trying out the sample
20+
You can use CECI to invoke the sample program:
21+
`CECI LINK PROGRAM(HELLOWLP)`
22+
and look for output in the STDOUT location for the JVMSERVER.
23+
24+
You can pass a channel with a container:
25+
`CECI PUT CONTAINER(NAME) CHAR FROM(MATTHEW) CHANNEL(CHAN)`
26+
27+
`CECI LINK PROG(HELLOWLP) CHANNEL(CHAN)`
28+
29+
## Found out more
30+
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/02/link-to-liberty/).

0 commit comments

Comments
 (0)