[jboss-user] [jBPM] - jBPM persistence configuration

Florent GUERIN do-not-reply at jboss.com
Mon Jun 4 05:56:03 EDT 2012


Florent GUERIN [https://community.jboss.org/people/fguerin] created the discussion

"jBPM persistence configuration"

To view the discussion, visit: https://community.jboss.org/message/739626#739626

--------------------------------------------------------------
Hi,

I have some problem to configure persistence of the data in my application.
I would like to use jBPM without jndi data source.

this is my persistence.xml file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence version="1.0"
          xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
                                 http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
                                 http://java.sun.com/xml/ns/persistence/orm 
                                 http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
          xmlns:orm="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://java.sun.com/xml/ns/persistence">


          <persistence-unit name="org.jbpm.persistence"
                    transaction-type="RESOURCE_LOCAL">
                    <provider>org.hibernate.ejb.HibernatePersistence</provider>


                    <mapping-file>META-INF/JBPMorm.xml</mapping-file>
                    <mapping-file>META-INF/Taskorm.xml</mapping-file>
                    <mapping-file>META-INF/ProcessInstanceInfo.hbm.xml</mapping-file>


                    <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
                    <class>org.drools.persistence.info.SessionInfo</class>
                    <class>org.drools.persistence.info.WorkItemInfo</class>


                    <class>org.jbpm.process.audit.ProcessInstanceLog</class>
                    <class>org.jbpm.process.audit.NodeInstanceLog</class>
                    <class>org.jbpm.process.audit.VariableInstanceLog</class>


                    <class>org.jbpm.task.Attachment</class>
                    <class>org.jbpm.task.Content</class>
                    <class>org.jbpm.task.BooleanExpression</class>
                    <class>org.jbpm.task.Comment</class>
                    <class>org.jbpm.task.Deadline</class>
                    <class>org.jbpm.task.Comment</class>
                    <class>org.jbpm.task.Deadline</class>
                    <class>org.jbpm.task.Delegation</class>
                    <class>org.jbpm.task.Escalation</class>
                    <class>org.jbpm.task.Group</class>
                    <class>org.jbpm.task.I18NText</class>
                    <class>org.jbpm.task.Notification</class>
                    <class>org.jbpm.task.EmailNotification</class>
                    <class>org.jbpm.task.EmailNotificationHeader</class>
                    <class>org.jbpm.task.PeopleAssignments</class>
                    <class>org.jbpm.task.Reassignment</class>
                    <class>org.jbpm.task.Status</class>
                    <class>org.jbpm.task.Task</class>
                    <class>org.jbpm.task.TaskData</class>
                    <class>org.jbpm.task.SubTasksStrategy</class>
                    <class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>
                    <class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>
                    <class>org.jbpm.task.User</class>


                    <properties>
                              <!-- Logs SQL -->
                              <property name="hibernate.show_sql" value="true" />
                              <property name="hibernate.format_sql" value="true"/>
                              <property name="use_sql_comments" value="true"/>
                              <!-- connexion JDBC -->
                              <property name="hibernate.connection.driver" value="com.mysql.jdbc.Driver" />
                              <property name="hibernate.connection.username" value="****" />
                              <property name="hibernate.connection.password" value="****" />
                              <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/****" />
                              <!-- creation automatique du schéma -->
                              <property name="hibernate.hbm2ddl.auto" value="create" />
                              <!-- Dialecte -->
                               <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" /> 
                    </properties>
          </persistence-unit>


Its seems that no data are stored in the database, maybe because i don't define transaction manager.

I would like to activate history log but i don't know how to do this, i try to activate it with JPAWorkingMemoryDbLogger but it doesn't work and produce exceptions.

If someone can help me on this.

Best regards,
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/739626#739626]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120604/4a323fce/attachment-0001.html 


More information about the jboss-user mailing list