Store the load modules in an application load library that is included in the CICS DD DFHRPL concatenation. (For information about storing load modules in application load libraries, see the CICS® System Definition Guide.)
CREATE STOGROUP EBSAMPSG VOLUMES(SYSDA,SYSDB) VCAT DSNxxxxx;
Change DSNxxxxx to
the name of your high-level integrated catalog facility (ICF) catalog identifier
for user-defined VSAM data sets.Authority required: DB2 authority to create a database, storage group, tablespace, tables, and indices.
Authority required: DB2 authority to perform a BIND for this database.
CEMT SET PROG(program_name) NEW
For example, if you change the DFH0CSTD program and recompile it, use CEMT SET PROG(DFH0CSTD) NEW. (DFH0CSTD is defined to the CICS region in the DFH$EJB2 resource definition group—see step 5.)
CEDA COPY GROUP(DFH$EJB2) TO(mygroup)
As well as DB2CONN and PROGRAM definitions, DFH$EJB2 also contains a CORBASERVER and a TCPIPSERVICE definition. However, these are for reference only. It is strongly recommended that you set up your EJB server, as described in Setting up an EJB server, before attempting to install the sample programs. If you do this, you don't need the CORBASERVER and TCPIPSERVICE definitions in DFH$EJB2 because you will already have created your own based on those supplied in resource group DFH$EJB. Discard them from group mygroup.
If you do decide to use the CORBASERVER and TCPIPSERVICE definitions in DFH$EJB2, you must modify them as described in Actions required on CICS.
If your CICS region uses program autoinstall, you don't need the PROGRAM definitions. Discard them from group mygroup.
Authority required: RACF authority to install resource definitions into the CICS region.
CEMT PERFORM CORBASERVER(corbaserver_name) SCAN
Authority required: RACF authority to create a DJAR and update access to the CORBASERVER.
CEMT PERFORM DJAR(SampleEJB) PUBLISH
Authority required: RACF authority to update a DJAR.
CEMT SET DB2CONN CONNECTED