The sample custom Event Processing (EP) adapter is provided
as a model to help you create your own custom EP adapter.
Before you begin
For assured event emission, synchronous transactional events
must have a recoverable temporary storage (TS) queue and synchronous
nontransactional events must have an unrecoverable TS queue. Whether
or not TS queues are recoverable depends on the value of a matching
TSMODEL option. TS queues are recoverable only when there is a matching
TSMODEL option that specifies that the TS queue is recoverable. When
you use the sample custom EP adapter for synchronous transactional
events, your program cannot issue a DELETEQ TS command for the event
TS queue in the unit of work that captures the event.
About this task
To use the sample custom EP adapter, use the event binding
editor to create and deploy an event binding. From CICS®, you then make the sample custom EP adapter
available.
Procedure
- From the event binding editor Adapter tab,
select Custom (User Written) in the Adapter field.
- Depending on the type of event, enter the required information:
- For asynchronous events, type EPAT in
the Transaction ID field.
- For synchronous events, type DFH0EPAC in
the Program ID field.
- In the Data passed to the Custom Adapter field,
type the name of the TS queue to which you want the events written,
or leave this field blank if you want the sample custom EP adapter
to create a TS queue name from the user ID and program name of the
program that the events originated from.
- Optional: For synchronous emission, click the Sync radio
button in the Emission Mode field in Advanced
Options.
- Optional: For transactional events, select
the Events are Transactional check box in Advanced
Options.
- Complete the event binding.
- Deploy the event binding to your CICS system.
- On your CICS system,
install the event binding in a bundle.
-
Make the sample custom EP adapter available by installing group DFH$EPAG.
- Run the program from which you want to generate events.
What to do next
Check the TS queue for results; click .