Balancing an enterprise bean workload

Start of changeThis example describes how to use the end user interface (EUI) to balance an enterprise bean workload.End of change

In an enterprise bean environment, the TOR CICSPT01 is the listener, and the enterprise bean may run in any of the AORs, CICSPA01, CICSPA02, and CICSPA03 in response to a client request. There are MRO links between the regions.

Defining the workload management environment

Running the enterprise bean workload balancing task

Restart the MASs and ensure that all the resources needed by each region are installed. You can use the EJCOSE view to monitor the CorbaServer status and the EJDJAR view to monitor DJAR status.

When all the CorbaServers and their assiciated DJARs are INSERVICE, issue the PUBLISH command against each CorbaServer in one of the AORs. This command causes the attributes of the CorbaServer, its associated DJARs and the beans contained in them to be identified to the Java Naming and Directory Interface (JNDI). When the command completes, the CICS routing and execution environment should be ready to run the enterprise beans.

When the initial process is run on the client, it uses the services of JNDI to identify a TCP/IP port. This port is used to pass a bean execution request to the configured listener region. The request receiver transaction CIRR is invoked within that region and issues a START request to the request processor transaction CIRP. This transaction has been redefined as dynamic and so the listener calls the DSRTPGM routing exit program to select a target region. In this case that program is EYU9XLOP, which will drive the workload balancing services of CICSPlex SM to select a suitable AOR. This AOR name is returned to the routing exit in the listener, which will route the execution of CIRP to the selected AOR. Finally the CorbaServer in the target AOR receives the request and executes the enterprise bean on behalf of the original client. The usage count value of the CIRP transaction across each of the AORs should increase with each execution of the client program. This can be verified using the CICSPlex SM command LOCTRAN CIRP.

[[ Contents Previous Page | Next Page Index ]]