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

## org.jbpm.process.audit
Class AuditLoggerFactory

    java.lang.Object
      org.jbpm.process.audit.AuditLoggerFactory

    public class AuditLoggerFactory

extends Object

Factory for producing support audit loggers. Currently two types are available:

- JPA - synchronous logger that is bound to the engine transaction and persists audit events as part of runtime engine transaction
- JMS - asynchronous logger that can be configured to place messages on the queue either with respect to active transaction (only after transaction is committed) or place them directly as they are generated

Nested Class Summary
`static class` | `AuditLoggerFactory.Type`

Constructor Summary
`AuditLoggerFactory()`

Method Summary
`static AbstractAuditLogger` | `newInstance(AuditLoggerFactory.Type type, org.kie.event.KnowledgeRuntimeEventManager ksession, Map<String,Object> properties)` Creates new isntances of audit logger based on given type and parameters and registers it directly in given ksession to receive its events.

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

Constructor Detail

### AuditLoggerFactory

    public AuditLoggerFactory()

Method Detail

### newInstance

    public static AbstractAuditLogger newInstance(AuditLoggerFactory.Type type,
                                                  org.kie.event.KnowledgeRuntimeEventManager ksession,
                                                  Map<String,Object> properties)

  Creates new isntances of audit logger based on given type and parameters and registers it directly in given ksession to receive its events. Depending on the types several properties are supported: JPA No properties are supported JMS
  - jbpm.audit.jms.transacted - determines if JMS session is transacted or not - default true - type Boolean
  - jbpm.audit.jms.connection.factory - connection factory instance - type javax.jms.ConnectionFactory
  - jbpm.audit.jms.queue - JMS queue instance - type javax.jms.Queue
  - jbpm.audit.jms.connection.factory.jndi - JNDI name of the connection factory to look up - type String
  - jbpm.audit.jms.queue.jndi - JNDI name of the queue to look up - type String

  Parameters:
    `type` - - type of the AuditLoger to create (JPA or JMS)
    `ksession` - - ksession that the logger will be attached to
    `properties` - - optional properties for the type of logger to initialize it
  Returns:
    new instance of AbstractAuditLogger

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.Alpha9
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.