JBoss Community

Re: AS 7.1.2, JBPM 5.3 persistence : Getting Large Objects may not be used in auto-commit mode exception

created by Vimal Kansal in jBPM - View the full discussion

My persistence unit is configured like this :

 

<persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">

        <!-- provider>org.hibernate.ejb.HibernatePersistence</provider -->     <-- I commented this out, since I am running on As7, and this is the default

        <jta-data-source>java:jboss/datasources/jbpmDS</jta-data-source>       

        <mapping-file>META-INF/JBPMorm-JPA2.xml</mapping-file>

        <!-- This line MUST be commented and NOT active when using JPA 2:

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

        -->

       

        <class>org.drools.persistence.info.SessionInfo</class>

        <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

        <class>org.drools.persistence.info.WorkItemInfo</class>

       

        <properties>

            <property name="hibernate.max_fetch_depth" value="3"/>

            <property name="hibernate.hbm2ddl.auto" value="update" />

            <property name="hibernate.show_sql" value="false" />

            <property name="hibernate.hbm2ddl.auto" value="update" />

         <property name="hibernate.show_sql" value="true" />

         <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />

         <property name="hibernate.connection.autocommit" value="false" />

         <property name="hibernate.transaction.manager_lookup_class" value="org.jbpm.integration.console.JBPMTransactionManager" /> <-- I am not sure do I need this?

        </properties>       

    </persistence-unit>

Reply to this message by going to Community

Start a new discussion in jBPM at Community