This tutorial leads you through the detailed steps to generate
a J2C application that processes variable length and multiple segment IMS™ transaction output messages.
This tutorial might require some optionally installable
components. If you encounter errors or cannot find user interface
options when you run the sample, ensure that you installed the appropriate
optional components:
- IBM® WebSphere® Application Server, V7.0, V8.0, or V8.5.
To use this sample, you must have an application server installed
and configured. To verify that a server runtime environment is available,
click Window > Preferences, expand Server, and then click Installed
Runtimes. You can use this pane to add, remove, or edit installed
server runtime definitions. You can also download and install support
for a new server.
This tutorial is divided into several exercises
that must be completed in sequence for the tutorial to work properly.
This tutorial teaches you how to use the J2C Java™ bean wizard to create a Java bean that runs a transaction in IMS. While completing the exercises,
you will:
Learning objectivesIn this tutorial,
you will:
- Use the J2C Java Bean wizard
to create a J2C Java bean that
runs an IMS transaction.
- Create a message buffer class, CCIBuffer.java, and edit this class
using doclet annotations.
- Create a method for the J2C Java bean to run the IMS transaction
and provide input and output data types for the method.
- Create Java data bindings
for the segments of the output message.
- Create a test Java class,
TestMultiSeg.java, to invoke the J2C Java bean method that runs the IMS transaction, then populate the output segments from the
buffer of data returned by the IMS transaction.
Time required
This tutorial should take
approximately 30 minutes to finish. If you explore other concepts
related to this tutorial, it could take longer to complete.
Skill level
Experienced
Audience
This tutorial is intended for
users who are familiar with Enterprise Information systems (EIS) and IMS in particular.
System requirements
To complete
this tutorial, you need to have the following tools and components
installed:
- IBM® WebSphere® Application Server, version V7.0,
V8.0, or V8.5.
- J2EE Connector (J2C) tools installed
- Information about your IMS environment: In this tutorial, your application interacts with
an IMS application program in IMS. You need to obtain information
such as the host name and port number of IMS Connect and the name of the IMS datastore where the transaction will run. Contact your IMS systems administrator for this
information. Specifically, you need to perform some setup work in IMS if you want to run the IMS\MultiSegmentOutput IMS program.
- A copy of the COBOL file MSOut.cbl: You
may locate this file in your product installation directory: \rad\eclipse\plugins\com.ibm.j2c.cheatsheet.content_7.0.0\samples\IMS\MultiSegmentOutput.
If you wish to store it locally, you can copy the code from here: MSout.cbl
- A clean workspace.
Prerequisites
In order to complete this
tutorial end to end, you should be familiar with:
- J2EE and Java programming
- Basic IMS Transaction Manager
(IMS TM) concepts