CPA Event Registration
CPA events report changes in the configuration data, for example, the creation or deletion of a communication channel.
These changes generally lead to a change in the underlying physical connection and its processing threads.
If you do not use this mechanism, the adapter must poll itself to keep the number of sender channels and their configuration data up-to-date.
● To use the CPA event mechanism, you must provide your adapter with a class that implements the com.sap.aii.af.service.administration.api.cpa.ChannelLifecycleCallback interface. This is demonstrated in the example adapter.

Open XIConfiguration.java and search for the character string CS_CPACB. Here you will find the implementation of the callback methods.
● Registration (subscription) is also undertaken in the example adapter.

Open XIConfiguration.java and search for the character string CS_CPAREG.