Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.CR4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbpm.process.audit.jms
Class AsyncAuditLogReceiver

    java.lang.Object
      org.jbpm.process.audit.jms.AsyncAuditLogReceiver

    public class AsyncAuditLogReceiver

extends Object

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

Constructor Summary
`AsyncAuditLogReceiver(javax.persistence.EntityManagerFactory entityManagerFactory)`

Method Summary
`javax.persistence.EntityManager` | `getEntityManager()`
`javax.persistence.EntityManagerFactory` | `getEntityManagerFactory()`
`void` | `onMessage(Message message)`
`void` | `setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AsyncAuditLogReceiver

    public AsyncAuditLogReceiver(javax.persistence.EntityManagerFactory entityManagerFactory)

Method Detail

### onMessage

    public void onMessage(Message message)

### getEntityManagerFactory

    public javax.persistence.EntityManagerFactory getEntityManagerFactory()

### setEntityManagerFactory

    public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)

### getEntityManager

    public javax.persistence.EntityManager getEntityManager()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.CR4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.