[jboss-user] [jBPM] - Re: jBPM 5.2 transaction issues in JBoss 5.1

B Cavlin do-not-reply at jboss.com
Mon Apr 9 12:12:28 EDT 2012


B Cavlin [https://community.jboss.org/people/bcavlin] created the discussion

"Re: jBPM 5.2 transaction issues in JBoss 5.1"

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

--------------------------------------------------------------
I have resolved issue by adding this to persistence.xml

<property name="jboss.entity.manager.factory.jndi.name" value="java:/jBPMManagerFactory"/>

I ma obtaining factory like this:

emf = (EntityManagerFactory) new javax.naming.InitialContext().lookup("java:/jBPMManagerFactory"); instead of Persistence.createEntityManagerFactory(properties.getProperty("persistence.persistenceunit.name"));

Seems to work fine for now.
--------------------------------------------------------------

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

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/20120409/ebcf7234/attachment.html 


More information about the jboss-user mailing list