EPI sample
The EPI Sample consists of a stateful session bean, a client
application, a custom record which demonstrates the use of the Screenable interface,
and a custom LogonLogoff class.
- EPIPlayScript.java
- Enterprise bean remote interface.
- EPIPlayScriptHome.java
- Enterprise bean home interface.
- EPIPlayScriptBean.java
- Enterprise bean implementation.
- EPIPlayScriptClient.java
- Enterprise bean client program.
- CICSCESNLogon.java
- A LogonLogoff class.
- Ejb-jar-epi-1.1.xml
- Example of a deployment descriptor.
The deployment descriptor is an example of an EJB 1.1 compliant
deployment descriptor for this enterprise bean. If you want to package
it up into a jar file, rename it to Ejb-jar.xml and
store it in the META-INF directory of the jar file. It might require
further entries if it is to be deployed into an EJB 2.0-compliant
environment.
- cicsj2ee.jar
- connector.jar
- ctgclient.jar
- ccf2.jar
- screenable.jar
The enterprise bean looks for an EPI connection factory named java:comp/env/EPI.
See your JEE Server's documentation for details of how deploy the
resource adapter under this reference in the JNDI. When deploying
the bean into your environment you need to supply this reference for
the bean to find the resource. The client program looks for the EPIPlayScript
bean with a name of EPIPlayScript1. Refer to your
JEE Server documentation for details of how to setup the bean with
this name in the JNDI namespace. The bean can be deployed as a bean-managed
transaction.
- S(txn)
- Start transaction
txn
. - F(x)=
Text
- Set field number x to
Text
. Field numbers start at 1. - P(aid)
- Press key
aid
. - C(row, col)
- Place cursor at row, col (row and col start at 1).
- R(x)
- Adds the text of the field at the given field number to the string array that will be returned. Field numbers start at 1.
S(CESN)F(7)=myuser
F(10)=mypass
P(enter)R(1)The EPIPlayScriptClient program takes no parameters; it has a default command sequence coded into it. Experiment by changing this command sequence or enhancing the sample.
The CICSCESNLogon.java sample contains example
code on how to logon to a CICS® Transaction Server for z/OS® system.
The code is works for English systems and might have to be tailored
for other versions of CICS and
languages. In order to use this class, deploy it as part of the sample
bean and reference it when you deploy the EPI resource adapter. For
more information about how to deploy the EPI resource adapter see Deploying CICS resource adapters.