CICS setup

  1. If EJB role-based security is active in your CICS region, you must turn it off before running the IVP. That is, if both the SEC and XEJB system initialization parameters currently specify 'YES', you must set XEJB to 'NO' and restart CICS.
  2. The CICS-supplied sample resource group, DFH$EJB, contains TCPIPSERVICE and CORBASERVER definitions suitable for running the IVP. You must change some of the attributes of these resource definitions to suit your own environment, and install the changed definitions into CICS. You should already have done this, as part of the task of setting up your EJB server. If you have not, follow the step-by-step instructions in Actions required on CICS.
  3. Issue a CEMT PERFORM CORBASERVER(EJB1) SCAN command.
    CICS:
    1. Scans the pickup directory that you specified on the DJARDIR option of the CORBASERVER definition
    2. Copies the HelloWorldEJB.jar deployed JAR file that it finds in the pickup directory to its shelf directory
    3. Dynamically creates and installs a DJAR definition for HelloWorldEJB.jar
    4. Because the CORBASERVER definition specifies AUTOPUBLISH(YES), publishes the enterprise bean contained in HelloWorldEJB.jar to the JNDI namespace.
  4. If you have not already done so while setting up your CorbaServer, set the status of the TCPIPSERVICE to OPEN:
    CEMT SET TCPIPSERVICE(EJBTCP1) OPEN
    On the CICS Console, you should see, among others, messages similar to the following:
    DFHEJ5024 Scan commencing for CorbaServer EJB1, directory being scanned is
              DJARDIR_name.
    DFHEJ5030 New DJar HelloWorldEJB is being created during a scan against
              CorbaServer EJB1.
    DFHEJ0901 DJar HelloWorldEJB within CorbaServer EJB1 has been created.
    DFHEJ5025 Scan completed for CorbaServer EJB1, 1 DJars created, 0 DJars updated.
    DFHEJ5032 DJar HelloWorldEJB is having its contents automatically published to
              the namespace.
    DFHEJ5009 Published bean HelloWorld to JNDI server 
              iiop://nameserver.location.company.com:2809 at location samples.
    DFHEJ1540 DJar HelloWorldEJB and the Beans it contains are now accessible.
    where:
    • DJARDIR_name is the name of your CorbaServer's deployed JAR file (“pickup”) directory.
    • iiop://nameserver.location.company.com:2809 is the URL and port number of your name server. In this example, a COS Naming Server is used.