17.2. Enable Custom Auditors
Audit mechanism requires CDI runtime environment to run.
To enable custom auditors, define the Auditor implementations with the
@Named annotation. It helps Apache Camel component to recognize all the auditor implementations. Camel Exchange Bus, a default implementation used by SwitchYard, look up for bean definitions with @Audit annotation.
Note
Do not include any state inside the Custom Auditor's field. Red Hat recommends you to use exchange properties or message headers to store values.