ascj001 - Multiple Asynchronous ECI Calls with Callback

This application can run multiple ECI asynchronous calls with callback simultaneously.

This source file creates two classes:

  1. ascj001.class ........ issues the asynchronous calls.
  2. ascjCB.class ......... handles all callbacks received.

Prior to each ECI call the commarea is initialised to 18 dashes. The server returns the current date and timestamp. The default CICS server program is the supplied SRVTIME which is compatible on all CICS servers. If desired, a different server program can be supplied as an input parameter to this application.

This program contains no data conversion for the commarea. Data conversion should be carried out on the server, if required.

Parameters can be overridden via command line.

Issue "ascj001 -?" for help and default settings.

Sample Input

java jgtest.eci.ascj001 -j local: -calls 3 -i 2

The sample input requests three ECI asynchronous calls to be made, iterating twice. Each ECI call has an associated message qualifier number which is displayed upon the call's return. Being asynchronous the responses to the ECI calls do not necessarily return in the same order that they were issued. The sample output demonstrates this scenario.

Sample Output

ascj001 - Multiple Asynchronous ECI Calls with Callback -j JGate -> local: -r JGate port -> 2006 -list list systems only -> false -s CICS server -> (not specified) -a application -> SRVTIME -calls # calls per iteration -> 3 -i # iterations -> 2 -u userid -> SYSAD -p password -> SYSAD -d delay -> 0 seconds -x exit on ECI error -> false -! debug -> false -? Display settings only --- ascj001 started 11/06/98 14:56 --- Successfully created JavaGateway connection --- --- Using CICS Region: AlsKix # Call Commarea Data Length CICS Rc Abend Call OK? -- ----------------- ----------------- ------ ------- ----- -------- 1 eci_async + mq 1 -- flow --> 1 eci_async + mq 2 -- flow --> 1 eci_async + mq 3 -- flow --> eci_async + mq 1 11/06/98 15:56:24 18 0 null OK eci_async + mq 2 11/06/98 15:56:25 18 0 null OK eci_async + mq 3 11/06/98 15:56:25 18 0 null OK 2 eci_async + mq 1 -- flow --> 2 eci_async + mq 2 -- flow --> 2 eci_async + mq 3 -- flow --> eci_async + mq 3 11/06/98 15:56:25 18 0 null OK eci_async + mq 2 11/06/98 15:56:26 18 0 null OK eci_async + mq 1 11/06/98 15:56:26 18 0 null OK --- Successfully closed JavaGateway connection --- --- ascj001 completed 11/06/98 14:56 --- Calls successful ... 6 out of 6 --- Iterations run ..... 2 out of 2

History log: