About the servlet examples
Four servlet examples are provided. This topic applies to CICS integrated-mode Liberty only.
- CICS® Hello World
- This example includes a Dynamic Web Project and a CICS bundle project. It is a simple web application and has no JCICS API calls. To deploy the application, you can export the CICS bundle project; the Dynamic Web Project is packaged into a WAR file and saved in a zFS directory. Alternatively, you can export the Dynamic Web Project as a WAR file and use FTP to copy the file to the dropins directory of a Liberty JVM server.
- CICS Java™ Database Connectivity (JDBC)
- This example includes an OSGi Application Project, an OSGi Bundle Project, a web-enabled OSGi Bundle Project, and a CICS bundle project. It provides a web front end to an existing JDBC sample and demonstrates how to access DB2® data from a Java application in a Liberty JVM server using the CICS JDBC feature.
- CICS Temporary Storage Queue (TSQ)
- This example includes an OSGi Application Project, a
Dynamic Web Project, a plug-in project, and a CICS bundle project. It demonstrates best practices by separating
the presentation from the business logic and by using a CICS
bundle to deploy the application.
The Dynamic Web Project provides the presentation logic; it includes a JSP page and four servlets. The plug-in project provides the business logic; it contains JCICS API calls that access a temporary storage queue in the CICS region. The CICS bundle project packages both projects for deployment.
- CICS Link to Liberty
- This example includes a Dynamic Web Project and a CICS bundle project. It demonstrates how to annotate Java code so that it can be called from a CICS program. The sample can be started from a 3270 session using CECI.