Unable to get JBPM to write to a JMS queue for jbpm-audit in JBoss BPM Suite 6.1

Solution In Progress - Updated -

Environment

  • Red Hat JBoss BPM Suite 6.1.0

Issue

  • What we need to accomplish is to use jbpm-audit to write to a JMS Queue

Resolution

This can be controlled with the project deployment descriptor; either modify the descriptor through the business-central web interface, or edit the file directly.

Option I: Modify deployment descriptor in business-central

  1. Log into business-central, and navigate to the Project Authoring perspective
  2. Click "Open Project Editor" button
  3. In the dropdown at the top of the Project Editor, select "Deployment descriptor"
  4. Set the "Audit mode" dropdown to JMS
  5. Build and Deploy the kjar

Option II: Modify kie-deployment-descriptor.xml directly

  1. Open META-INF/kie-deployment-descriptor.xml
  2. Set <audit-mode> to JMS

    <deployment-descriptor xsi:schemaLocation="http://www.jboss.org/jbpm deployment-descriptor.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <persistence-unit>org.jbpm.domain</persistence-unit>
        <audit-persistence-unit>org.jbpm.domain</audit-persistence-unit>
        <audit-mode>JMS</audit-mode>
        <persistence-mode>JPA</persistence-mode>
        <runtime-strategy>PER_PROCESS_INSTANCE</runtime-strategy>
        <marshalling-strategies/>
        <event-listeners/>
        <task-event-listeners/>
        <globals/>
        <work-item-handlers/>
        <environment-entries/>
        <configurations/>
        <required-roles/>
        <remoteable-classes/>
    </deployment-descriptor>
    
  3. Build and Deploy the kjar

By setting audit-mode to JMS the process will write audit logging to a queue named jms/queue/KIE.AUDIT

Root Cause

By default, process deployments to business-central will use the JPA audit mode.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

1 Comments

Is it possible to use different domain in persistence units? "org.jbpm.domainorg.jbpm.domain2"