Unable to get JBPM to write to a JMS queue for jbpm-audit in JBoss BPM Suite 6.1
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
- Log into business-central, and navigate to the Project Authoring perspective
- Click "Open Project Editor" button
- In the dropdown at the top of the Project Editor, select "Deployment descriptor"
- Set the "Audit mode" dropdown to
JMS
- Build and Deploy the kjar
Option II: Modify kie-deployment-descriptor.xml directly
- Open
META-INF/kie-deployment-descriptor.xml
-
Set
<audit-mode>
toJMS
<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>
- 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.
Comments