Asynchronous audit event receiver. Receives messages from JMS queue
that it is attached to as
MessageListener
.
This is the second part of asynchronous BAM support backed by JMS
(producer is provide by
AsyncAuditLogProducer
class).
Thus it shares the same message format that is TextMessage with
Xstream serialized *Log classes (ProcessInstanceLog,
NodeInstanceLog, VaraiableInstanceLog) as content.
by default it uses entity manager factory and creates entity manager for each message
although it provides getEntityManager method that can be overloaded by extensions to supply
entity managers instead of creating it for every message.
For more enterprise based solution this class can be extended by MDB implementations to
provide additional details that are required by MDB such as:
- annotations - @MessageDriven, @ActivationConfigurationProperty
- dependency injection - inject entity manager factory or entity manager by annotating methods