[jboss-user] [jBPM] - Re: Issue : JTA EntityManager cannot use getTransaction()

Prashanth Karnam do-not-reply at jboss.com
Thu Feb 2 06:01:59 EST 2012


Prashanth Karnam [https://community.jboss.org/people/pras_karnam] created the discussion

"Re: Issue : JTA EntityManager cannot use getTransaction()"

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

--------------------------------------------------------------
This is how my persistence looks like

<?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
      http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd 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
      http://java.sun.com/xml/ns/persistence/orm_1_0.xsd http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
        xmlns:orm=" http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
        xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence">

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

                <provider>org.hibernate.ejb.HibernatePersistence</provider>
                <jta-data-source>java:SDSOracleDS</jta-data-source>
                <mapping-file>META-INF/orm.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.hbm2ddl.auto" value="create-update" /> |
|                      | <property name="hibernate.ejb.cfgfile" value="META-INF/hibernate.cfg.xml" /> |
|                      | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> |
|              | </properties> |


Can anyone help how it has to be configured to avoid the issue/exception.
--------------------------------------------------------------

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

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/20120202/7d2a425e/attachment.html 


More information about the jboss-user mailing list